Skip to content

Commit e61314b

Browse files
committed
fix: make sure the tag isnt miner
1 parent a782c85 commit e61314b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/update-versions.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
# Get all releases and find the first one starting with 'v'
2323
RELEASE_INFO=$(curl -s "https://api.github.com/repos/filecoin-project/lotus/releases/latest")
2424
25-
# Extract the tag name
26-
TAG_NAME=$(echo "$RELEASE_INFO" | jq -r .tag_name)
25+
# 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')
2727
2828
# Extract version number (remove 'v' prefix)
2929
LATEST_VERSION=$(echo $TAG_NAME | sed 's/^v//')

0 commit comments

Comments
 (0)