diff --git a/.github/workflows/push-node-status-api.yaml b/.github/workflows/push-node-status-api.yaml index 40a87967e8..484eea9d96 100644 --- a/.github/workflows/push-node-status-api.yaml +++ b/.github/workflows/push-node-status-api.yaml @@ -50,18 +50,17 @@ jobs: - name: New env vars run: echo "RELEASE_TAG='$RELEASE_TAG' GIT_TAG='$GIT_TAG' IMAGE_NAME_AND_TAGS='$IMAGE_NAME_AND_TAGS'" - - name: Remove existing tag if exists run: | - if git rev-parse $${{ env.GIT_TAG }} >/dev/null 2>&1; then - git push --delete origin $${{ env.GIT_TAG }} - git tag -d $${{ env.GIT_TAG }} + if git rev-parse $GIT_TAG >/dev/null 2>&1; then + git push --delete origin $GIT_TAG + git tag -d $GIT_TAG fi - name: Create tag run: | - git tag -a $${{ env.GIT_TAG }} -m "Version ${{ steps.get_version.outputs.result }}" - git push origin $${{ env.GIT_TAG }} + git tag -a $GIT_TAG -m "Version ${{ steps.get_version.outputs.result }}" + git push origin $GIT_TAG - name: BuildAndPushImageOnHarbor run: |