Skip to content

Commit 924bfc8

Browse files
committed
Update manual-tag workflow to use intermediate script variable
Signed-off-by: Shard Gupta <shardga@amazon.com>
1 parent 41f73cd commit 924bfc8

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/manual_tags.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,18 @@ jobs:
2626
fetch-depth: 0
2727
- name: Run create-tag script
2828
env:
29+
TAG_ID: ${{ github.event.inputs.tagId }}
2930
message: ${{ github.event.inputs.message }}
3031
# Run when commit hash is not provided (then the tag will be created on the latest commit of the current branch)
3132
if: ${{github.event.inputs.commit_hash == ''}}
3233
run: |
33-
bash ./.github/scripts/create-tag.sh -t ${{github.event.inputs.tagId}}
34+
bash ./.github/scripts/create-tag.sh -t "$TAG_ID"
3435
- name: Run create-tag script when commit hash is provided
3536
env:
37+
TAG_ID: ${{ github.event.inputs.tagId }}
38+
COMMIT_HASH: ${{ github.event.inputs.commit_hash }}
3639
message: ${{ github.event.inputs.message }}
3740
# Run when commit hash is provided, tag will be created on top of the commit hash
3841
if: ${{github.event.inputs.commit_hash != ''}}
3942
run: |
40-
bash ./.github/scripts/create-tag.sh -c ${{github.event.inputs.commit_hash}} -t ${{github.event.inputs.tagId}}
43+
bash ./.github/scripts/create-tag.sh -c "$COMMIT_HASH" -t "$TAG_ID"

0 commit comments

Comments
 (0)