Skip to content

chore(main): release core 25.0.0 #874

chore(main): release core 25.0.0

chore(main): release core 25.0.0 #874

on:
push:
branches:
- release-please--branches--main--components--core
name: release-please-update-cargo-lock
jobs:
update_cargo_lock:
# TODO: After migraton switch to CI
runs-on: [matterlabs-default-infra-runners]
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
with:
submodules: "recursive"
persist-credentials: false
- name: Check last commit
id: condition
run: |
COMMIT=$(git log -1 --pretty=%B)
if [[ "$COMMIT" == "Update Cargo.lock" ]]; then
echo "Cargo.lock is already updated"
echo "::set-output name=skip_steps::true"
else
echo "Cargo.lock should be updated"
echo "::set-output name=skip_steps::false"
fi
- name: Setup environment
if: steps.condition.outputs.skip_steps != 'true'
run: |
echo ZKSYNC_HOME=$(pwd) >> $GITHUB_ENV
echo $(pwd)/bin >> $GITHUB_PATH
echo IN_DOCKER=1 >> .env
- name: Start services
if: steps.condition.outputs.skip_steps != 'true'
run: docker compose up -d zk
- name: Cargo check
if: steps.condition.outputs.skip_steps != 'true'
run: ci_run cargo check
- name: Push changes
if: steps.condition.outputs.skip_steps != 'true'
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