Skip to content

Commit e97a14b

Browse files
committed
fix: refine github action
1 parent 7000e19 commit e97a14b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/update-versions.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,11 @@ jobs:
2020
id: get-version
2121
run: |
2222
# Get all releases and find the first one starting with 'v'
23-
RELEASE_INFO=$(curl -s "https://api.github.com/repos/filecoin-project/lotus/releases/latest" | \
24-
jq -r '[.[] | select(.tag_name | startswith("v"))] | first')
23+
RELEASE_INFO=$(curl -s "https://api.github.com/repos/filecoin-project/lotus/releases/latest")
2524
2625
# Extract the tag name
2726
TAG_NAME=$(echo "$RELEASE_INFO" | jq -r .tag_name)
28-
27+
2928
# Extract version number (remove 'v' prefix)
3029
LATEST_VERSION=$(echo $TAG_NAME | sed 's/^v//')
3130

0 commit comments

Comments
 (0)