From e5d59bad7e0d86c4b149aaabfc7e43d6e3a23ef6 Mon Sep 17 00:00:00 2001 From: Ayush Dubey <61616662+Ayushdubey86@users.noreply.github.com> Date: Tue, 13 May 2025 13:49:58 +0530 Subject: [PATCH] feat: Adding cronjob for superchain (#16141) --- .github/workflows/update-superchain.yml | 36 +++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/update-superchain.yml diff --git a/.github/workflows/update-superchain.yml b/.github/workflows/update-superchain.yml new file mode 100644 index 0000000000..5065a51e4b --- /dev/null +++ b/.github/workflows/update-superchain.yml @@ -0,0 +1,36 @@ +name: Update Superchain Config + +on: + schedule: + - cron: '0 3 * * 0' + workflow_dispatch: + +permissions: + contents: write + +jobs: + update-superchain: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install required tools + run: | + sudo apt-get update + sudo apt-get install -y jq zstd qpdf yq + + - name: Run fetch_superchain_config.sh + run: | + chmod +x crates/optimism/chainspec/res/fetch_superchain_config.sh + cd crates/optimism/chainspec/res + ./fetch_superchain_config.sh + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v7 + with: + commit-message: "chore: update superchain config" + title: "chore: update superchain config" + body: "This PR updates the superchain configs via scheduled workflow." + branch: "ci/update-superchain-config" + delete-branch: true