Update Lotus version in API tests #76
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |