mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-18 13:55:23 -05:00
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.
This commit is contained in:
parent
e1246c3ea9
commit
26479bb9f5
1 changed files with 1 additions and 1 deletions
2
.github/workflows/upload_asset.sh
vendored
2
.github/workflows/upload_asset.sh
vendored
|
@ -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/' \
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue