We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a817779 commit 22692abCopy full SHA for 22692ab
.github/workflows/main.yml
@@ -21,14 +21,17 @@ jobs:
21
echo "\`\`\`" >> README.md
22
23
- name: Commit and push if README changed
24
+ env:
25
+ TOKEN: ${{ secrets.GH_PAT }}
26
run: |
27
git config --global user.name 'github-actions[bot]'
28
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
29
30
if ! git diff --quiet README.md; then
31
git add README.md
32
git commit -m "📝 Auto-update README with latest folder structure"
- git push
33
+ git push https://x-access-token:${TOKEN}@github.com/${{ github.repository }}.git HEAD:main
34
else
35
echo "No changes to commit"
36
fi
37
+
0 commit comments