From 0627a12161234fd91b3e6b6718e4df00c6a41c97 Mon Sep 17 00:00:00 2001 From: chrisbloe Date: Tue, 17 Mar 2026 13:53:22 +0000 Subject: [PATCH] [PRM-691] Delete tag before pushing a new one --- .github/workflows/tool-create-release.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tool-create-release.yml b/.github/workflows/tool-create-release.yml index a599f9e8..71d4f444 100644 --- a/.github/workflows/tool-create-release.yml +++ b/.github/workflows/tool-create-release.yml @@ -42,7 +42,7 @@ jobs: exit 1 fi - - name: Create Github tag + - name: Create GitHub tag run: | git config --global user.name "github-actions" git config --global user.email "github-actions@github.com" @@ -56,9 +56,13 @@ jobs: git config user.email "github-actions@github.com" floating_tag="v${tag%%.*}" git tag -d $floating_tag + echo "${floating_tag} deleted locally." + git push --delete origin $floating_tag + echo "${floating_tag} deleted from origin." git tag -a $floating_tag -m "Floating tag for v${tag%%.*}" git push origin $floating_tag - + echo "${floating_tag} pushed to origin." + - name: Create new floating tag (Major Version) if: endsWith(env.tag, '.0.0') run: |