Skip to content
on:
push:
branches:
- release-please--branches--main--components--core
name: release-please-update-cargo-lock
jobs:
update_cargo_lock:
runs-on: [matterlabs-ci-runner]
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
with:
submodules: "recursive"
persist-credentials: false
- name: Check last commit
run: |
git log -1 --pretty=%B
- name: Setup environment
run: |
echo ZKSYNC_HOME=$(pwd) >> $GITHUB_ENV
echo $(pwd)/bin >> $GITHUB_PATH
echo IN_DOCKER=1 >> .env
- name: Start services
run: docker compose up -d zk
- name: Cargo check
run: ci_run cargo check
- name: Push changes
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "zksync-era-bot"
git remote set-url origin 'https://${{ secrets.RELEASE_TOKEN }}@github.com/matter-labs/zksync-era.git'
git add ./Cargo.lock
git commit -m "Update Cargo.lock"
git push