Force tests to run on PRs made to release
@@ -4,6 +4,9 @@ on:
push:
branches:
- dev
+ pull_request:
+ branches:
+ - release
jobs:
build:
@@ -15,7 +18,6 @@ jobs:
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- token: ${{ secrets.PUSH_ACTION_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v2
@@ -42,20 +44,20 @@ jobs:
bump_version build $VERSION_FILE
# Note that we don't want to create a new tag for "builds"
- # - name: Commit files
- # run: |
- # REPOSITORY=${INPUT_REPOSITORY:-$GITHUB_REPOSITORY}
- # remote_repo="https://${GITHUB_ACTOR}:${{ secrets.PUSH_ACTION_TOKEN }}@github.com/${REPOSITORY}.git"
+ - name: Commit files
+ run: |
+ REPOSITORY=${INPUT_REPOSITORY:-$GITHUB_REPOSITORY}
+ remote_repo="https://${GITHUB_ACTOR}:${{ secrets.PUSH_ACTION_TOKEN }}@github.com/${REPOSITORY}.git"
- # git config --local user.email "action@github.com"
- # git config --local user.name "GitHub Action"
+ git config --local user.email "action@github.com"
+ git config --local user.name "GitHub Action"
- # # Commit version bump to dev ([no ci] to avoid infinite loop)
- # git commit -m "Bump version number [no ci]" -a
- # git push "${remote_repo}" dev
+ # Commit version bump to dev ([no ci] to avoid infinite loop)
+ git commit -m "Bump version number (build) [no ci]" -a
+ git push "${remote_repo}" dev
- - name: Commit files
- uses: stefanzweifel/git-auto-commit-action@v4
- with:
- commit_message: Bump version number (build part)
- commit_author: Author <actions@github.com>
+ # - name: Commit files
+ # uses: stefanzweifel/git-auto-commit-action@v4
+ # with:
+ # commit_message: Bump version number (build part)
+ # commit_author: Author <actions@github.com>
