There was an error while loading. Please reload this page.
1 parent d6964d4 commit fc9b394Copy full SHA for fc9b394
1 file changed
.github/workflows/wiki-sync.yml
@@ -56,8 +56,11 @@ jobs:
56
git config --global user.name 'github-actions[bot]'
57
58
git add .
59
- git commit \
60
- --author="$WIKI_SYNC_REF_AUTHOR" --date="$WIKI_SYNC_REF_AUTHOR_DATE" \
61
- --message="$(cat /tmp/wiki_sync_commit_message)" \
62
- --allow-empty
63
- git push
+ if git diff --cached --quiet; then
+ echo 'No changes staged, skipping commit'
+ else
+ git commit \
+ --author="$WIKI_SYNC_REF_AUTHOR" --date="$WIKI_SYNC_REF_AUTHOR_DATE" \
64
+ --message="$(cat /tmp/wiki_sync_commit_message)"
65
+ git push
66
+ fi
0 commit comments