Skip to content

Commit 4c767f6

Browse files
committed
Update manual-tag workflow to use intermediate script variable
Signed-off-by: Shard Gupta <shardga@amazon.com>
1 parent 0ac7875 commit 4c767f6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/manual_tags.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,18 @@ jobs:
2929
fetch-depth: 0
3030
- name: Run create-tag script
3131
env:
32+
TAG_ID: ${{ github.event.inputs.tagId }}
3233
message: ${{ github.event.inputs.message }}
3334
# Run when commit hash is not provided (then the tag will be created on the latest commit of the current branch)
3435
if: ${{github.event.inputs.commit_hash == ''}}
3536
run: |
36-
bash ./.github/scripts/create-tag.sh -t ${{github.event.inputs.tagId}}
37+
bash ./.github/scripts/create-tag.sh -t "$TAG_ID"
3738
- name: Run create-tag script when commit hash is provided
3839
env:
40+
TAG_ID: ${{ github.event.inputs.tagId }}
41+
COMMIT_HASH: ${{ github.event.inputs.commit_hash }}
3942
message: ${{ github.event.inputs.message }}
4043
# Run when commit hash is provided, tag will be created on top of the commit hash
4144
if: ${{github.event.inputs.commit_hash != ''}}
4245
run: |
43-
bash ./.github/scripts/create-tag.sh -c ${{github.event.inputs.commit_hash}} -t ${{github.event.inputs.tagId}}
46+
bash ./.github/scripts/create-tag.sh -c "$COMMIT_HASH" -t "$TAG_ID"

0 commit comments

Comments
 (0)