Don't try to commit tags if doing a dry run

Change-Id: I967d6502f6e8cbcefc915f51224c140f418002f6
This commit is contained in:
Ray Milkey 2017-11-02 15:03:56 -07:00
parent ec3b489cab
commit d341e61bbb

View File

@ -60,8 +60,10 @@ else
popd
fi
# Commit newly versioned artifacts and issue a tag.
git commit -a -m"Tagging $NEW_VERSION"
git tag -sm"Tagging $NEW_VERSION" $NEW_VERSION #signed tag
if [ $dryRun -eq 0 ]; then
# Commit newly versioned artifacts and issue a tag.
git commit -a -m"Tagging $NEW_VERSION"
git tag -sm"Tagging $NEW_VERSION" $NEW_VERSION #signed tag
fi
# TODO: push?