Skip to content

Commit 269e4cf

Browse files
committed
Fix release archive naming logic
1 parent c389737 commit 269e4cf

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ jobs:
2929
- name: Determine version
3030
id: version
3131
run: |
32-
if [[ $GITHUB_REF == refs/tags/* ]]; then
33-
echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
32+
if [ "${{ github.ref_type }}" = "tag" ]; then
33+
echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
3434
fi
35-
echo "Building version: $VERSION"
35+
echo "Ref type: ${{ github.ref_type }}"
36+
echo "Ref name: ${{ github.ref_name }}"
3637
3738
- name: Package tools
3839
run: |

0 commit comments

Comments
 (0)