Skip to content

Commit 42d8696

Browse files
committed
Get latest hardhat version in a more robust way
1 parent 50d88b6 commit 42d8696

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ commands:
154154
--fail \
155155
--show-error \
156156
"${EXTRA_HEADERS[@]}" \
157-
https://api.github.com/repos/nomiclabs/hardhat/releases/latest \
158-
| jq --raw-output .tag_name \
157+
https://api.github.com/repos/nomiclabs/hardhat/releases \
158+
| jq --raw-output 'map(select(.tag_name | test("^hardhat@"))) | .[0].tag_name' \
159159
)
160160
echo "export HARDHAT_LATEST_RELEASE_TAG='${HARDHAT_LATEST_RELEASE_TAG}'" >> "$BASH_ENV"
161161

0 commit comments

Comments
 (0)