Skip to content

Commit 85bf7bf

Browse files
authored
Also delete local release tag (#4943)
If the tag exists in public, then it exists locally too since we fetched all of public when adding it as a remote. Also delete this local tag so it doesn't fail when we recreate it.
1 parent bbe8698 commit 85bf7bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

buildspecs/release-to-github.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ phases:
2424
- |
2525
if [ `git ls-remote --tags public | grep refs/tags/$RELEASE_VERSION | wc -l` -ge "1" ]; then
2626
git push public :refs/tags/$RELEASE_VERSION
27+
git tag --delete $RELEASE_VERSION
2728
fi
2829
- git tag -a $RELEASE_VERSION -m "AWS SDK for Java v2 ($RELEASE_VERSION)"
2930
-

0 commit comments

Comments
 (0)