aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2020-11-25 01:31:21 +0000
committerGitHub <noreply@github.com>2020-11-25 01:31:21 +0000
commit26479bb9f5c42e3294204c2923a67f3185dd061c (patch)
tree3d10b35c4959e501826289ead281433cc98f907c /.github
parente1246c3ea9343a27801f3f310b44ec2b57b37f25 (diff)
downloadalacritty-26479bb9f5c42e3294204c2923a67f3185dd061c.tar.gz
alacritty-26479bb9f5c42e3294204c2923a67f3185dd061c.zip
Fix CI upload assets tag matching
The previous version would search for the last tag by matching the beginning of the tag name. By explicitly searching for the trailing `"` with grep, an exact tag match is now enforced. Since releases like v1.2.3 always match the beginning of their RCs (v1.2.3-rc4), this makes sure that the assets aren't pushed to the previous release.
Diffstat (limited to '.github')
-rwxr-xr-x.github/workflows/upload_asset.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/upload_asset.sh b/.github/workflows/upload_asset.sh
index 3005e707..55845ae9 100755
--- a/.github/workflows/upload_asset.sh
+++ b/.github/workflows/upload_asset.sh
@@ -35,7 +35,7 @@ upload_url=$(\
2> /dev/null \
| grep -E "(upload_url|tag_name)" \
| paste - - \
- | grep -e "tag_name\": \"$tag" \
+ | grep -e "tag_name\": \"$tag\"" \
| head -n 1 \
| sed 's/.*\(https.*assets\).*/\1/' \
)