From b2fc866887df338cad30fd2f4d26c9a4cfb7d939 Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Sun, 10 Jan 2021 21:07:47 +0100 Subject: [PATCH] Default to 'NoTag' --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 49d9fd7..ad8d92d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,7 +2,6 @@ name: Release on: push: - pull_request: release: types: [published] @@ -34,7 +33,8 @@ jobs: id: filenames run: | tag=${GITHUB_REF#refs/tags/} - tag=${tag#refs/heads/} + if [[ "$tag" =~ refs/ ]]; then tag="NoTag"; fi + echo "Using tag: $tag" echo "::set-output name=foldername::rttrUtils_$tag" echo "::set-output name=filename::rttrUtils-${{runner.os}}-${tag}.tar.gz"