We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c01b7e5 commit 68a93a7Copy full SHA for 68a93a7
.github/workflows/files-changed.yml
@@ -67,12 +67,13 @@ jobs:
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'
70
- if ! git diff-index --quiet HEAD; then
+ git diff-index HEAD
71
+ if git diff-index --quiet HEAD; then
72
+ echo "No changes to commit"
73
+ else
74
git add README.md
75
git commit -m "Update README.md"
- git push
- else
- echo "No changes to commit"
76
+ git push
77
fi
78
env:
79
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments