File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 20
20
with :
21
21
app-id : ${{ vars.APP_ID }}
22
22
private-key : ${{ secrets.PRIVATE_APP_KEY }}
23
+
24
+ - name : Get GitHub App User ID
25
+ id : get-user-id
26
+ run : echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
27
+ env :
28
+ GH_TOKEN : ${{ steps.app-token.outputs.token }}
23
29
24
30
- name : Checkout code
25
31
uses : actions/checkout@v4
42
48
- name : Push changes
43
49
continue-on-error : true
44
50
run : |
45
- git config user.name ${{ secrets.GH_USER }}
46
- git config user.email " ${{ secrets.GH_MAIL }}"
51
+ git config user.name ' ${{ steps.app-token.outputs.app-slug }}[bot]'
52
+ git config user.email ' ${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com>'
47
53
git add Cargo.lock
48
54
git commit -m "Weekly Cargo.lock update"
49
55
git push --force
You can’t perform that action at this time.
0 commit comments