Only commit and push if there are changes
Eelco Dolstra committed
Jul 12, 2021 at 17:11 UTC
7c259152d2b7bca4c0d3d1de343914080eec4630
1 file changed
+6
-3
modules/rfc39.nix
+6
-3
@@ -71,9 +71,12 @@ in {
71
--invited-list "$recordsdir/invitations"
72
73
cd "$recordsdir"
74
- git add .
75
- git commit -m "Automated team sync results."
76
- git push origin main
74
+
75
+ if git diff --quiet; then
76
+ git add .
77
+ git commit -m "Automated team sync results."
78
+ git push origin main
79
+ fi
80
'';
81
};
82