We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c7257a commit 4daf14cCopy full SHA for 4daf14c
release.sh
@@ -8,9 +8,9 @@ if [ -z "$1" ]; then
8
fi
9
10
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/')
+VECTOR_VERSION=$(curl --silent https://api.github.com/repos/vectordotdev/vector/releases/latest \
+ | grep -oE "tag_name\": *\".{1,15}\"," \
+ | ${SED:-sed} 's/tag_name\": *\"v//;s/\",//')
14
15
create_pr() {
16
local branch title output pr_url
0 commit comments