File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,12 +12,12 @@ jobs:
1212 name : " Draft a new release"
1313 runs-on : ubuntu-latest
1414 if : github.ref_name == 'develop'
15- env :
16- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
1715 outputs :
1816 commitSha : ${{ steps.make-commit.outputs.commit }}
1917 steps :
2018 - uses : actions/checkout@v4
19+ with :
20+ token : ${{ secrets.ACTIONS_NICHOLAS_PAT }}
2121
2222 - name : Create release branch
2323 run : |
3333 prerelease : false
3434 publish : false
3535 env :
36- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36+ GITHUB_TOKEN : ${{ secrets.ACTIONS_NICHOLAS_PAT }}
3737
3838 - name : Set up JDK 17
3939 uses : actions/setup-java@v4
@@ -63,15 +63,15 @@ jobs:
6363 git config user.name "GitHub actions"
6464 git config user.email noreply@github.com
6565
66- - name : Fetch commit hash
67- id : make-commit
68- run : echo "commit=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
69-
7066 - name : Commit pom files
7167 run : |
7268 git add '**/pom.xml' pom.xml
7369 git commit --message "Prepare release v${{ github.event.inputs.version }}"
7470
71+ - name : Fetch commit hash
72+ id : make-commit
73+ run : echo "commit=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
74+
7575 - name : Push new branch
7676 run : |
7777 git push origin release/v${{ github.event.inputs.version }}
You can’t perform that action at this time.
0 commit comments