We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 136e4ee commit 6d13d5aCopy full SHA for 6d13d5a
.github/workflows/submodule-export.yml
@@ -52,12 +52,15 @@ jobs:
52
rm -rf $line
53
done < "$BLACKLIST"
54
55
- - name: Commit Changes
+ - name: Commit Changes (if any)
56
run: |
57
git add -A
58
- git commit -m "Submodule Export"
+ if git diff --cached --quiet; then
59
+ echo "No changes to commit"
60
+ else
61
+ git commit -m "Submodule Export"
62
+ fi
63
64
- name: Push export branch
65
66
git push --set-upstream origin "$EXPORT_BRANCH" --force
-
0 commit comments