Skip to content

Commit 384e7f2

Browse files
committed
Additional changes 2
1 parent 803eda8 commit 384e7f2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/create_release_branch.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
name: Create Release Branch Workflow
22
on:
3-
pull_request:
43
workflow_dispatch:
54
inputs:
65
version:
@@ -35,6 +34,8 @@ jobs:
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 != '' }}
@@ -43,6 +44,8 @@ jobs:
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
@@ -60,6 +63,8 @@ jobs:
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
@@ -69,3 +74,5 @@ jobs:
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 }}

0 commit comments

Comments
 (0)