From ad0f169d647662e78e4752ffe3eb66a4912be30d Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 20 Mar 2023 11:23:10 -0500 Subject: [PATCH] Fix naming of the source tarball (#6068) This refactoring from #5766 accidentally broke the tag name calculation for the `build-src-tarball.sh` script so this fixes it by copying over the same logic from `build-tarballs.sh`. --- ci/build-src-tarball.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/build-src-tarball.sh b/ci/build-src-tarball.sh index ad7e5c916c..4856e6805e 100755 --- a/ci/build-src-tarball.sh +++ b/ci/build-src-tarball.sh @@ -4,8 +4,8 @@ set -ex # Determine the name of the tarball tag=dev -if [[ $GITHUB_REF == refs/tags/v* ]]; then - tag=${GITHUB_REF#refs/tags/} +if [[ $GITHUB_REF == refs/heads/release-* ]]; then + tag=v${GITHUB_REF:19} fi pkgname=wasmtime-$tag-src