Skip to content

Commit 4daf14c

Browse files
authored
chore(releasing): fix script vector version (vectordotdev#477)
1 parent 5c7257a commit 4daf14c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

release.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ if [ -z "$1" ]; then
88
fi
99

1010
ISSUE_LINK=$1
11-
VECTOR_VERSION=$(curl -s https://raw.githubusercontent.com/vectordotdev/vector/master/Cargo.toml | \
12-
grep -E '^version = "' | \
13-
sed -E 's/version = "(.*)"/\1/')
11+
VECTOR_VERSION=$(curl --silent https://api.github.com/repos/vectordotdev/vector/releases/latest \
12+
| grep -oE "tag_name\": *\".{1,15}\"," \
13+
| ${SED:-sed} 's/tag_name\": *\"v//;s/\",//')
1414

1515
create_pr() {
1616
local branch title output pr_url

0 commit comments

Comments
 (0)