We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d7230a commit c01b7e5Copy full SHA for c01b7e5
.github/workflows/files-changed.yml
@@ -62,12 +62,17 @@ jobs:
62
run: python scripts/python_create_readme.py
63
64
- name: Commit and push changes
65
+ shell: bash
66
run: |
67
ls -la
68
git config --local user.name 'github-actions[bot]'
69
git config --local user.email 'github-actions[bot]@users.noreply.github.com'
- git add README.md
70
- git commit -m 'Auto update README.md'
71
- git push
+ if ! git diff-index --quiet HEAD; then
+ git add README.md
72
+ git commit -m "Update README.md"
73
+ git push
74
+ else
75
+ echo "No changes to commit"
76
+ fi
77
env:
78
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments