Skip to content

Commit 3aac1a9

Browse files
fix: move the code for git diff-index
1 parent 6e6c074 commit 3aac1a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bosh_final_release

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ fi
4545
$BOSH upload blobs
4646
echo "Commiting git changes ..."
4747
git add config/blobs.yml
48-
git commit -m "Blobs for v$VERSION"
48+
git diff-index --quiet HEAD || git commit -m "Blobs for v$VERSION"
4949

5050
# Creating the release
5151
$BOSH create release --final --with-tarball --name $RELEASE
@@ -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 diff-index --quiet HEAD || git commit -m "$RELEASE v$VERSION boshrelease"
59+
git commit -m "$RELEASE v$VERSION boshrelease"
6060

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

0 commit comments

Comments
 (0)