File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
1
name : Update Lotus Version
2
2
3
3
on :
4
- workflow_dispatch : # Allows manual trigger
4
+ workflow_dispatch :
5
5
pull_request :
6
6
types : [opened, reopened]
7
7
@@ -20,12 +20,11 @@ jobs:
20
20
id : get-version
21
21
run : |
22
22
# 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" | \
24
- jq -r '[.[] | select(.tag_name | startswith("v"))] | first')
25
-
26
- # Extract the tag name
27
- TAG_NAME=$(echo "$RELEASE_INFO" | jq -r .tag_name)
23
+ RELEASE_INFO=$(curl -s "https://api.github.com/repos/filecoin-project/lotus/releases/latest")
28
24
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)) | .tag_name')
27
+
29
28
# Extract version number (remove 'v' prefix)
30
29
LATEST_VERSION=$(echo $TAG_NAME | sed 's/^v//')
31
30
You can’t perform that action at this time.
0 commit comments