Skip to content

Commit 774b6bf

Browse files
committed
fix: exit deployment process early if nothing to commit
1 parent 7eb03a9 commit 774b6bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/deploy.pantheon.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
- name: Deploy to Pantheon
7070
run: |
7171
cd prod
72-
git status
72+
git status | grep "nothing to commit" && exit 0 || git status
7373
git add .
7474
git commit -m "Prod release"
7575
git push pantheon HEAD:master

0 commit comments

Comments
 (0)