Skip to content

Commit 092a01e

Browse files
CopilotJesseStutler
andcommitted
Fix TAG handling for workflow_dispatch trigger
Co-authored-by: JesseStutler <38534065+JesseStutler@users.noreply.github.com>
1 parent 7f91bb5 commit 092a01e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ jobs:
2222

2323
- name: Get tag or branch name
2424
run: |
25-
echo "TAG=${{ github.ref_name }}" >> $GITHUB_ENV
25+
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
26+
echo "TAG=latest" >> $GITHUB_ENV
27+
else
28+
echo "TAG=${{ github.ref_name }}" >> $GITHUB_ENV
29+
fi
2630
- name: Update tag for main branch
2731
if: github.ref == 'refs/heads/main'
2832
run: |

0 commit comments

Comments
 (0)