Skip to content

Commit f025703

Browse files
committed
Add missing workflow conditional block
1 parent fd415c0 commit f025703

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/split-monorepo.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,14 @@ jobs:
371371
git config user.email [email protected]
372372
git remote add upstream https://${{ secrets.PAT }}@github.com/hydephp/ui-kit.git
373373
374-
git add .
375-
git diff --exit-code || git commit -m "$COMMIT_MESSAGE https://github.com/hydephp/develop/commit/${{ github.sha }}"
374+
if ! git diff-index --quiet HEAD --; then
376375
377-
git push upstream master
376+
git add .
377+
git diff --exit-code || git commit -m "$COMMIT_MESSAGE https://github.com/hydephp/develop/commit/${{ github.sha }}"
378+
379+
git push upstream master
380+
else
381+
echo "No changes to this package. Exiting gracefully."
382+
exit 0;
383+
fi
378384

0 commit comments

Comments
 (0)