From d314f3da80a99c0e0991c9f3e1757c5a6ae0bc09 Mon Sep 17 00:00:00 2001 From: Justine De Caires Date: Tue, 1 Jun 2021 00:57:22 -0700 Subject: [PATCH] Don't fail deploy script on empty working tree --- scripts/deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 5195fc90..a365a4fa 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -30,7 +30,7 @@ if [[ $VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then git add latest fi -git commit -q -m "Publish v$VERSION" +git diff-index --quiet HEAD || git commit -q -m "Publish v$VERSION" git push origin $PUBLISH_BRANCH popd