File tree Expand file tree Collapse file tree 4 files changed +10
-8
lines changed
Expand file tree Collapse file tree 4 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -12,4 +12,5 @@ permissions:
1212jobs :
1313 call-prepare :
1414 uses : leoweyr/github-release-workflow/.github/workflows/reusable-prepare-release.yml@develop
15- secrets : inherit
15+ secrets :
16+ ACCESS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -10,4 +10,5 @@ permissions:
1010jobs :
1111 call-publish :
1212 uses : leoweyr/github-release-workflow/.github/workflows/reusable-publish-release.yml@develop
13- secrets : inherit
13+ secrets :
14+ ACCESS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1919 type : string
2020 default : ' github-actions[bot]@users.noreply.github.com'
2121 secrets :
22- GITHUB_TOKEN :
22+ ACCESS_TOKEN :
2323 required : true
2424 description : ' GitHub Token for authentication.'
2525
5656 - name : Generate Changelog Content for PR Body
5757 env :
5858 GITHUB_REPO : ${{ github.repository }}
59- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
59+ GITHUB_TOKEN : ${{ secrets.ACCESS_TOKEN }}
6060 run : |
6161 npx git-cliff --config .change-log-config/cliff.toml --verbose --latest --strip all > pr_body_raw.md
6262
6767 - name : Update CHANGELOG.md File
6868 env :
6969 GITHUB_REPO : ${{ github.repository }}
70- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
70+ GITHUB_TOKEN : ${{ secrets.ACCESS_TOKEN }}
7171 run : |
7272 if [ -f "CHANGELOG.md" ]; then
7373 # File exists: Prepend new changes (git-cliff intelligently handles headers).
8585
8686 - name : Create Pull Request
8787 env :
88- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
88+ GITHUB_TOKEN : ${{ secrets.ACCESS_TOKEN }}
8989 run : |
9090 gh pr create \
9191 --title "release: ${{ env.TAG_NAME }}" \
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Publish Release
33on :
44 workflow_call :
55 secrets :
6- GITHUB_TOKEN :
6+ ACCESS_TOKEN :
77 required : true
88
99jobs :
3333
3434 - name : Create GitHub Release
3535 env :
36- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36+ GH_TOKEN : ${{ secrets.ACCESS_TOKEN }}
3737 run : |
3838 gh release create ${{ env.TAG_NAME }} \
3939 --title "${{ env.VERSION_TITLE }}" \
You can’t perform that action at this time.
0 commit comments