Fix bump version action
@@ -4,9 +4,6 @@ on:
push:
branches:
- dev
- pull_request:
- branches:
- - release
jobs:
build:
@@ -16,6 +13,7 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
+ token: ${{ secrets.PUSH_ACTION_TOKEN }}
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
@@ -44,20 +42,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 (build) [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>
