Skip to content
Merged
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/update-versions.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Update Lotus Version

on:
workflow_dispatch: # Allows manual trigger
workflow_dispatch:
pull_request:
types: [opened, reopened]

Expand All @@ -20,12 +20,11 @@ jobs:
id: get-version
run: |
# Get all releases and find the first one starting with 'v'
RELEASE_INFO=$(curl -s "https://api.github.com/repos/filecoin-project/lotus/releases" | \
jq -r '[.[] | select(.tag_name | startswith("v"))] | first')
RELEASE_INFO=$(curl -s "https://api.github.com/repos/filecoin-project/lotus/releases/latest")

# Extract the tag name
TAG_NAME=$(echo "$RELEASE_INFO" | jq -r .tag_name)

# Extract version number (remove 'v' prefix)
LATEST_VERSION=$(echo $TAG_NAME | sed 's/^v//')

Expand Down