File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 35
35
owner : ${{ github.repository_owner }}
36
36
repositories : |
37
37
pyroscope
38
+ - name : Get GitHub App User ID
39
+ id : get-user-id
40
+ env :
41
+ GITHUB_TOKEN : ${{ steps.generate_token.outputs.token }}
42
+ run : |
43
+ APP_BOT="${{ steps.generate_token.outputs.app-slug }}[bot]"
44
+ echo "user-id=$(gh api "/users/${APP_BOT}" --jq .id)" >> "$GITHUB_OUTPUT"
38
45
- uses : actions/setup-go@v5
39
46
with :
40
47
go-version : 1.23.11
43
50
44
51
- name : Commit and push changes
45
52
run : |
46
- git config --local user.name 'Pyroscope Bot'
47
- git config --local user.email '[email protected] '
53
+ APP_BOT="${{ steps.generate_token.outputs.app-slug }}[bot]"
54
+ git config --local user.name "${APP_BOT}"
55
+ git config --local user.email "${{ steps.get-user-id.outputs.user-id }}+${APP_BOT}@users.noreply.github.com"
48
56
if ! git diff --exit-code README.md; then
49
57
git add README.md
50
58
git commit -m 'docs: updates the list of contributors in README'
You can’t perform that action at this time.
0 commit comments