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 1
1
name : Create Release Branch Workflow
2
2
on :
3
- pull_request :
4
3
workflow_dispatch :
5
4
inputs :
6
5
version :
35
34
with :
36
35
fetch-depth : 0
37
36
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
38
39
39
40
- name : Checkout repository (${{ github.event.inputs.commit_sha }})
40
41
if : ${{ github.event.inputs.commit_sha != '' }}
43
44
fetch-depth : 0
44
45
token : ${{ steps.app-token.outputs.token }}
45
46
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
46
49
47
50
- name : Check if release branch already exists
48
51
id : check-branch
60
63
run : |
61
64
git checkout -b ${{ github.event.inputs.branch_name }}
62
65
git push --set-upstream origin ${{ github.event.inputs.branch_name }}
66
+ env :
67
+ GH_TOKEN : ${{ steps.app-token.outputs.token }}
63
68
64
69
- name : Replace version in release.json
65
70
id : replace-version
69
74
git add release.json
70
75
git commit -m "Update release.json with version ${{ github.event.inputs.version }}"
71
76
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