From 6afc377a51d58fb51e8e5e4c7ebac4870e4b8c1e Mon Sep 17 00:00:00 2001 From: Dongie Agnir <261310+dagnir@users.noreply.github.com> Date: Mon, 5 Feb 2024 15:34:20 -0800 Subject: [PATCH] Fix tag deletion command (#4892) --- buildspecs/release-to-github.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildspecs/release-to-github.yml b/buildspecs/release-to-github.yml index 332bc1298fbe..36cbaaebe466 100644 --- a/buildspecs/release-to-github.yml +++ b/buildspecs/release-to-github.yml @@ -23,7 +23,7 @@ phases: - git remote add --fetch public $PUBLIC_REPOSITORY_URL - | if [ `git ls-remote --tags public | grep refs/tags/$RELEASE_VERSION | wc -l` -ge "1" ]; then - git push -d public :refs/tags/$RELEASE_VERSION + git push public :refs/tags/$RELEASE_VERSION fi - git tag -a $RELEASE_VERSION -m "AWS SDK for Java v2 ($RELEASE_VERSION)" -