File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 88 runs-on : ubuntu-latest
99 environment : Automation
1010
11+ permissions : {}
12+
1113 steps :
1214 - name : Dump environment
1315 run : env
2426 app-id : ${{ vars.AUTOMATION_APP_ID }}
2527 private-key : ${{ secrets.AUTOMATION_PRIVATE_KEY }}
2628
27- - uses : actions/checkout@v5
29+ - name : Get GitHub App User ID
30+ id : get-user-id
31+ run : echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
32+ env :
33+ GH_TOKEN : ${{ steps.app-token.outputs.token }}
34+
35+ - name : Configure git user
36+ run : |
37+ git config --global user.name '${{ steps.app-token.outputs.app-slug }}[bot]'
38+ git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com'
39+
40+ - name : Checkout repository
41+ uses : actions/checkout@v5
2842 with :
2943 token : ${{ steps.app-token.outputs.token }}
3044 fetch-depth : 0 # ensure we have all tags and can push commits
You can’t perform that action at this time.
0 commit comments