From e32df10b4d0b97c268ae4cf36ed3e8bd9d25e927 Mon Sep 17 00:00:00 2001 From: Mark Sinclair <14054343+mmsinclair@users.noreply.github.com> Date: Fri, 11 Jul 2025 11:30:26 +0100 Subject: [PATCH] Update push-node-status-api.yaml --- .github/workflows/push-node-status-api.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/push-node-status-api.yaml b/.github/workflows/push-node-status-api.yaml index 484eea9d96..d39989c795 100644 --- a/.github/workflows/push-node-status-api.yaml +++ b/.github/workflows/push-node-status-api.yaml @@ -52,9 +52,11 @@ jobs: - name: Remove existing tag if exists run: | - if git rev-parse $GIT_TAG >/dev/null 2>&1; then - git push --delete origin $GIT_TAG - git tag -d $GIT_TAG + if git rev-parse "$GIT_TAG" >/dev/null 2>&1; then + echo "Tag $GIT_TAG already exists, deleting" + git push --delete origin "$GIT_TAG" + git tag -d "$GIT_TAG" + echo "Tag $GIT_TAG already exists, deleted" fi - name: Create tag