Skip to content

Commit c1bd2d3

Browse files
committed
fix tag getter
1 parent da5b57e commit c1bd2d3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,16 @@ jobs:
1818
tag: ${{ steps.set-tag.outputs.tag }}
1919
steps:
2020
- id: set-tag
21+
name: Determine Tag
2122
run: |
23+
# Determine the tag name for this release
2224
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
23-
echo "::set-output name=tag::${{ github.event.inputs.tag }}"
25+
TAG="${{ github.event.inputs.tag }}"
2426
else
25-
echo "::set-output name=tag::${GITHUB_REF#refs/tags/}"
27+
TAG="${GITHUB_REF#refs/tags/}"
2628
fi
29+
# Export the tag output
30+
echo "tag=$TAG" >> "$GITHUB_OUTPUT"
2731
shell: bash
2832

2933
build-linux:

0 commit comments

Comments
 (0)