Skip to content

Update Lotus version in API tests #65

Update Lotus version in API tests

Update Lotus version in API tests #65

# This workflows, run daily, updates the Lotus version in the JSON-RPC API tests to the latest release,
# and submits a PR with the changes.
name: Update Lotus version in API tests
on:
workflow_dispatch:
schedule:
- cron: '0 7 * * *'
jobs:
update-lotus:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Update dependencies
run: |
NETWORK=calibnet
TAG=$(curl --silent https://api.github.com/repos/filecoin-project/lotus/releases | jq -r 'first | .tag_name')
sed -i "s/\(LOTUS_IMAGE=.*\):.*/\1:$TAG-$NETWORK/" ./scripts/tests/api_compare/.env
sed -i "s/\(LOTUS_IMAGE=.*\):.*/\1:$TAG-$NETWORK/" ./scripts/tests/snapshot_parity/.env
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.ACTIONS_PAT }}
commit-message: Update Lotus dependency
title: "[automated] Update Lotus version in API tests"
body: |
### Changes
- Updates Lotus version in the JSON-RPC API tests to the latest release.