Skip to content

Commit

Permalink
fix: exit deployment process early if nothing to commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dustin-jw committed Oct 24, 2023
1 parent 7eb03a9 commit 774b6bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.pantheon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
- name: Deploy to Pantheon
run: |
cd prod
git status
git status | grep "nothing to commit" && exit 0 || git status
git add .
git commit -m "Prod release"
git push pantheon HEAD:master

0 comments on commit 774b6bf

Please sign in to comment.