From 1066761e8f3f401e2ff96f80ba3cb872702459de Mon Sep 17 00:00:00 2001 From: Petr Ruzicka Date: Fri, 5 Dec 2025 16:16:35 +0100 Subject: [PATCH] fix: use env in steps instead of inputs in bash code --- .github/workflows/release.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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: |