Skip to content

Commit ed35ee0

Browse files
authored
fix: use env in steps instead of inputs in bash code (#167)
1 parent ccb9ad9 commit ed35ee0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/release.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@ jobs:
3131
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
3232
- name: Update tag with parameter
3333
if: github.event.inputs.tag != ''
34+
env:
35+
TAG: ${{ inputs.tag }}
3436
run: |
35-
git tag --delete ${{ inputs.tag }} || true
36-
git push --delete origin ${{ inputs.tag }} || true
37-
git tag -a ${{ inputs.tag }} -m 'Retag ${{ inputs.tag }}'
38-
git push origin ${{ inputs.tag }}
37+
git tag --delete "$TAG" || true
38+
git push --delete origin "$TAG" || true
39+
git tag -a "$TAG" -m "Retag $TAG"
40+
git push origin "$TAG"
3941
- name: Update tag to v2
4042
if: github.event.inputs.tag == ''
4143
run: |

0 commit comments

Comments
 (0)