File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 11name : Create Release Branch Workflow
22on :
3- pull_request :
43 workflow_dispatch :
54 inputs :
65 version :
3534 with :
3635 fetch-depth : 0
3736 token : ${{ steps.app-token.outputs.token }}
37+ # Make sure the value of GITHUB_TOKEN will not be persisted in repo's config
38+ persist-credentials : false
3839
3940 - name : Checkout repository (${{ github.event.inputs.commit_sha }})
4041 if : ${{ github.event.inputs.commit_sha != '' }}
4344 fetch-depth : 0
4445 token : ${{ steps.app-token.outputs.token }}
4546 ref : ${{ github.event.inputs.commit_sha }}
47+ # Make sure the value of GITHUB_TOKEN will not be persisted in repo's config
48+ persist-credentials : false
4649
4750 - name : Check if release branch already exists
4851 id : check-branch
6063 run : |
6164 git checkout -b ${{ github.event.inputs.branch_name }}
6265 git push --set-upstream origin ${{ github.event.inputs.branch_name }}
66+ env :
67+ GH_TOKEN : ${{ steps.app-token.outputs.token }}
6368
6469 - name : Replace version in release.json
6570 id : replace-version
6974 git add release.json
7075 git commit -m "Update release.json with version ${{ github.event.inputs.version }}"
7176 git push origin ${{ github.event.inputs.branch_name }}
77+ env :
78+ GH_TOKEN : ${{ steps.app-token.outputs.token }}
You can’t perform that action at this time.
0 commit comments