Skip to content

Commit 9cf4c30

Browse files
authored
Setup git credencial only when pull-request is merged in Release.yaml
1 parent a545346 commit 9cf4c30

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/Release.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,11 @@ jobs:
5151
git config --global user.name "Release Bot"
5252
git config --global user.email "[email protected]"
5353
git config --global --add safe.directory /__w/scenario_simulator_v2/scenario_simulator_v2
54-
git config --global credential.helper ${{ secrets.BLOOM_GITHUB_TOKEN }}
5554
git config pull.rebase false
55+
56+
- name: Setup git credential
57+
if: github.event.pull_request.merged == true
58+
run: git config --global credential.helper ${{ secrets.BLOOM_GITHUB_TOKEN }}
5659

5760
- name: Get old version
5861
id: old_version

0 commit comments

Comments
 (0)