Skip to content

Commit f960119

Browse files
Update .github/workflows/update-versions.yml
Co-authored-by: Adrian Lanzafame <[email protected]>
1 parent e61314b commit f960119

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/update-versions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
RELEASE_INFO=$(curl -s "https://api.github.com/repos/filecoin-project/lotus/releases/latest")
2424
2525
# Find first tag that starts with 'v' but not 'miner'
26-
TAG_NAME=$(echo "$RELEASE_INFO" | jq -r '[.[] | select(.tag_name | startswith("v") and (contains("miner") | not))][0].tag_name')
26+
TAG_NAME=$(echo "$RELEASE_INFO" | jq -r 'select(.tag_name | startswith("v") and (contains("miner") | not)) | .tag_name')
2727
2828
# Extract version number (remove 'v' prefix)
2929
LATEST_VERSION=$(echo $TAG_NAME | sed 's/^v//')

0 commit comments

Comments
 (0)