We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76cc834 commit 72a2197Copy full SHA for 72a2197
1 file changed
.github/workflows/prettier.yml
@@ -40,11 +40,17 @@ jobs:
40
echo "changes=true" >> $GITHUB_OUTPUT
41
fi
42
43
+ # Push with _GITHUB_TOKEN so this commit triggers a new workflow run (Build PR → ESLint).
44
- name: Commit and push eslint changes
45
if: steps.changes.outputs.changes == 'true'
46
+ env:
47
+ _GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48
run: |
49
git config user.name "${{ github.actor }}"
50
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
54
git add .
55
git commit -m "chore: format code and fix lint issues"
56
git push origin ${{ github.ref_name }}
0 commit comments