Skip to content

Commit 54fc90a

Browse files
committed
Trim prefix from git ref name during release
1 parent ca67d30 commit 54fc90a

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
@@ -57,8 +57,8 @@ jobs:
5757
VSIX_PATH="$(ls dist/*.vsix)"
5858
echo "::set-output name=vsix_path::$VSIX_PATH"
5959
# Transform the GitHub ref so it can be used in a filename.
60-
# This is mainly needed for testing branches that modify this workflow.
61-
REF_NAME="$(echo ${{ github.ref }} | sed -e 's:/:-:g')"
60+
# The last sed invocation is used for testing branches that modify this workflow.
61+
REF_NAME="$(echo ${{ github.ref }} | sed -e 's:^refs/tags/::' | sed -e 's:/:-:g')"
6262
echo "::set-output name=ref_name::$REF_NAME"
6363
6464
# Uploading artifacts is not necessary to create a release.

0 commit comments

Comments
 (0)