Skip to content

Commit b2fc866

Browse files
FlamefireFlow86
authored andcommitted
Default to 'NoTag'
1 parent 05ec337 commit b2fc866

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: Release
22

33
on:
44
push:
5-
pull_request:
65
release:
76
types: [published]
87

@@ -34,7 +33,8 @@ jobs:
3433
id: filenames
3534
run: |
3635
tag=${GITHUB_REF#refs/tags/}
37-
tag=${tag#refs/heads/}
36+
if [[ "$tag" =~ refs/ ]]; then tag="NoTag"; fi
37+
echo "Using tag: $tag"
3838
echo "::set-output name=foldername::rttrUtils_$tag"
3939
echo "::set-output name=filename::rttrUtils-${{runner.os}}-${tag}.tar.gz"
4040

0 commit comments

Comments
 (0)