Skip to content

Commit

Permalink
fix: bump_docs via jq
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Lee <dave@gray101.com>
  • Loading branch information
dave-gray101 committed Apr 29, 2024
1 parent 67dd8d2 commit 49d37e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/bump_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
set -xe
REPO=$1

LATEST_TAG=$(curl -s "https://api.github.com/repos/$REPO/releases/latest" | jq -r '.name' | grep -oP 'v\d+\.\d+\.\d+')
LATEST_TAG=$(curl -s "https://api.github.com/repos/$REPO/releases/latest" | jq -r '.tag_name')

cat <<< $(jq ".version = \"$LATEST_TAG\"" docs/data/version.json) > docs/data/version.json

0 comments on commit 49d37e2

Please sign in to comment.