Skip to content

Commit 6e6c074

Browse files
do not fail when there are no blobs to commit
1 parent e5bb94f commit 6e6c074

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bosh_final_release

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ VERSION=$(ls -r -v releases/$RELEASE/$RELEASE-*.yml | sed 's/.*\/.*-\(.*\)\.yml$
5656
# Create a new tag and update the changes
5757
echo "Commiting git changes ..."
5858
git add .final_builds releases/$RELEASE/index.yml "releases/$RELEASE/$RELEASE-$VERSION.yml"
59-
git commit -m "$RELEASE v$VERSION boshrelease"
59+
git diff-index --quiet HEAD || git commit -m "$RELEASE v$VERSION boshrelease"
6060

6161
# Push all the changes
6262
git push --tags

0 commit comments

Comments
 (0)