Skip to content

Commit 72a2197

Browse files
committed
test
1 parent 76cc834 commit 72a2197

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/prettier.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,17 @@ jobs:
4040
echo "changes=true" >> $GITHUB_OUTPUT
4141
fi
4242
43+
# Push with _GITHUB_TOKEN so this commit triggers a new workflow run (Build PR → ESLint).
4344
- name: Commit and push eslint changes
4445
if: steps.changes.outputs.changes == 'true'
46+
env:
47+
_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4548
run: |
4649
git config user.name "${{ github.actor }}"
4750
git config user.email "${{ github.actor }}@users.noreply.github.com"
51+
if [ -n "$_GITHUB_TOKEN" ]; then
52+
git remote set-url origin "https://x-access-token:${_GITHUB_TOKEN}@github.com/${{ github.repository }}.git"
53+
fi
4854
git add .
4955
git commit -m "chore: format code and fix lint issues"
5056
git push origin ${{ github.ref_name }}

0 commit comments

Comments
 (0)