From 774b6bf1e43efc1bee004a5d52f5b93d6a1d8e23 Mon Sep 17 00:00:00 2001 From: dustin-jw Date: Mon, 23 Oct 2023 10:27:03 -0600 Subject: [PATCH] fix: exit deployment process early if nothing to commit --- .github/workflows/deploy.pantheon.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.pantheon.yml b/.github/workflows/deploy.pantheon.yml index 9618783..57c7d90 100644 --- a/.github/workflows/deploy.pantheon.yml +++ b/.github/workflows/deploy.pantheon.yml @@ -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