Skip to content

Commit 22692ab

Browse files
authored
Update main.yml
1 parent a817779 commit 22692ab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,17 @@ jobs:
2121
echo "\`\`\`" >> README.md
2222
2323
- name: Commit and push if README changed
24+
env:
25+
TOKEN: ${{ secrets.GH_PAT }}
2426
run: |
2527
git config --global user.name 'github-actions[bot]'
2628
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
2729
2830
if ! git diff --quiet README.md; then
2931
git add README.md
3032
git commit -m "📝 Auto-update README with latest folder structure"
31-
git push
33+
git push https://x-access-token:${TOKEN}@github.com/${{ github.repository }}.git HEAD:main
3234
else
3335
echo "No changes to commit"
3436
fi
37+

0 commit comments

Comments
 (0)