Skip to content

Commit 7f2b77e

Browse files
committed
with gh token
1 parent 7a9f033 commit 7f2b77e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/generator.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,14 @@ jobs:
4848
- name: Configure Git
4949
if: steps.check_changes.outputs.changed == 'true'
5050
run: |
51-
git config --local user.email "action@github.com"
52-
git config --local user.name "GitHub Action"
51+
git config --global user.email 'actions@github.com'
52+
git config --global user.name 'GitHub Actions Bot'
5353
5454
- name: Commit and push changes
5555
if: steps.check_changes.outputs.changed == 'true'
56+
env:
57+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5658
run: |
5759
git add .
5860
git commit -m "chore: update Java SDK from latest OpenAPI specification" || exit 0
59-
git push
61+
git push https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git HEAD:${{ github.ref }}

0 commit comments

Comments
 (0)