File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff 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 }}
You can’t perform that action at this time.
0 commit comments