File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 3636 # Make sure the value of GITHUB_TOKEN will not be persisted in repo's config
3737 persist-credentials : false
3838
39- - name : Checkout repository (${{ github.event.inputs.commit_sha }} )
39+ - name : Checkout repository (commit SHA) )
4040 if : ${{ github.event.inputs.commit_sha != '' }}
4141 uses : actions/checkout@v4
4242 with :
4646 # Make sure the value of GITHUB_TOKEN will not be persisted in repo's config
4747 persist-credentials : false
4848
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+
4961 - name : Check if release branch already exists
5062 id : check-branch
5163 run : |
You can’t perform that action at this time.
0 commit comments