File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 description : ' Generated build version number'
1313 value : ${{ jobs.generate-build-version.outputs.build-version }}
1414 commit-hash :
15- description : " Commit hash with build version bumped"
15+ description : ' Commit hash with build version bumped'
1616 value : ${{ jobs.bump-version.outputs.commit-hash }}
1717
1818jobs :
@@ -24,14 +24,15 @@ jobs:
2424 bump-version :
2525 runs-on : ubuntu-latest
2626 needs : generate-build-version
27+ permissions :
28+ contents : write
2729 outputs :
2830 commit-hash : ${{ steps.bump-build-version.outputs.commit-hash }}
2931 steps :
3032 - uses : actions/checkout@v3
3133 with :
3234 fetch-depth : 0
3335 ref : ${{ inputs.ref }}
34- token : ${{ secrets.PR_TOKEN }}
3536 - name : Bump build version
3637 id : bump-build-version
3738 shell : bash
5051 git commit -m "[skip ci] Bump version number to ${BUILD_NUMBER}"
5152 git push origin HEAD:$GH_REF_NAME --force-with-lease
5253 echo "commit-hash=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
53-
You can’t perform that action at this time.
0 commit comments