Feature/gitflow (#3911)

* testing gitflow

* Name changes

* Testing python changes

* Added Checkout to Base test

* More minor fixes for merge

* Minor fix

* Added nightly build

* Testing Merge

* Merge error fix

* Merge fix

* merge fix

* Merge fix

* Merge fix

* Merge fix

* merge fix
This commit is contained in:
Luqman
2023-01-10 11:22:22 +01:00
committed by GitHub
parent cfb6539837
commit c782daf3ca
2 changed files with 16 additions and 7 deletions

View File

@@ -12,11 +12,7 @@ on:
branches:
- develop
- main
types: [opened, synchronize, closed]
push:
branches:
- develop
- main
types: [opened, synchronize, reopened, closed]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
@@ -27,11 +23,21 @@ jobs:
python-changes:
name: Check for changes to Python code
runs-on: ubuntu-latest
if: github.event.pull_request.merged != true
outputs:
python-changes: ${{ steps.python-changes.outputs.python-changes }}
steps:
- name: Checkout Code
- name: Checkout
uses: actions/checkout@v1
with:
# Need to fetch more than the last commit so that setuptools-scm can
# create the correct version string. If the number of commits since
# the last release is greater than this, the version still be wrong.
# Increase if necessary.
fetch-depth: 100
# The GitHub token is preserved by default but this job doesn't need
# to be able to push to GitHub.
persist-credentials: false
# Check for changes to Python code to avoid running tests unnecessarily
- name: Check for changes to Python code
@@ -42,7 +48,7 @@ jobs:
target_branch=$(jq -r .pull_request.base.ref "$GITHUB_EVENT_PATH")
# Check for changes to Python code to avoid running tests unnecessarily
if git diff --name-only origin/$target_branch HEAD | grep -E '\.py$'; then
if git diff --name-only origin/$target_branch HEAD | grep -E "\.py$"; then
echo "python-changes=true" >> $GITHUB_OUTPUT
else
echo "python-changes=false" >> $GITHUB_OUTPUT

View File

@@ -1 +1,4 @@
print("Hello, World!")
# print another
print("Hello, World!")