File tree 1 file changed +13
-1
lines changed 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 36
36
# Make sure the value of GITHUB_TOKEN will not be persisted in repo's config
37
37
persist-credentials : false
38
38
39
- - name : Checkout repository (${{ github.event.inputs.commit_sha }} )
39
+ - name : Checkout repository (commit SHA) )
40
40
if : ${{ github.event.inputs.commit_sha != '' }}
41
41
uses : actions/checkout@v4
42
42
with :
46
46
# Make sure the value of GITHUB_TOKEN will not be persisted in repo's config
47
47
persist-credentials : false
48
48
49
+ - name : Get GitHub App User ID
50
+ id : get-user-id
51
+ run : echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
52
+ env :
53
+ GH_TOKEN : ${{ steps.app-token.outputs.token }}
54
+
55
+ - name : Set up Git
56
+ id : setup-git
57
+ run : |
58
+ git config --global user.name '${{ steps.app-token.outputs.app-slug }}[bot]'
59
+ git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com'
60
+
49
61
- name : Check if release branch already exists
50
62
id : check-branch
51
63
run : |
You can’t perform that action at this time.
0 commit comments