diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4e0f9b2..2e6068d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -31,11 +31,13 @@ jobs: git config user.email '41898282+github-actions[bot]@users.noreply.github.com' - name: Update tag with parameter if: github.event.inputs.tag != '' + env: + TAG: ${{ inputs.tag }} run: | - git tag --delete ${{ inputs.tag }} || true - git push --delete origin ${{ inputs.tag }} || true - git tag -a ${{ inputs.tag }} -m 'Retag ${{ inputs.tag }}' - git push origin ${{ inputs.tag }} + git tag --delete "$TAG" || true + git push --delete origin "$TAG" || true + git tag -a "$TAG" -m "Retag $TAG" + git push origin "$TAG" - name: Update tag to v2 if: github.event.inputs.tag == '' run: |