Skip to content

Commit 61415ca

Browse files
committed
converted to pat token
1 parent 7f2b77e commit 61415ca

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/generator.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,13 @@ jobs:
4444
run: |
4545
cd generator
4646
./generate-sdk.sh
47-
48-
- name: Configure Git
49-
if: steps.check_changes.outputs.changed == 'true'
50-
run: |
51-
git config --global user.email '[email protected]'
52-
git config --global user.name 'GitHub Actions Bot'
53-
47+
5448
- name: Commit and push changes
5549
if: steps.check_changes.outputs.changed == 'true'
5650
env:
57-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
5852
run: |
5953
git add .
6054
git commit -m "chore: update Java SDK from latest OpenAPI specification" || exit 0
61-
git push https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git HEAD:${{ github.ref }}
55+
git push https://x-access-token:${PAT_TOKEN}@github.com/${{ github.repository }}.git HEAD:${{ github.ref }}
56+

0 commit comments

Comments
 (0)