From 613798e0bba93f2f69c1934e4d08eeee51c8cfda Mon Sep 17 00:00:00 2001 From: RogerLamTd Date: Fri, 3 Jan 2025 12:35:59 +0800 Subject: [PATCH] chore(repo): workflows skip dependabot prs --- .github/workflows/bridge-ui.yml | 6 +++--- .github/workflows/docs-site--preview.yml | 2 +- .github/workflows/fork-diff--preview.yml | 2 +- .github/workflows/guardian-prover-health-check-ui--ci.yml | 1 - .github/workflows/guardian-prover-health-check-ui.yml | 5 +++-- .github/workflows/guardian-prover-health-check.yml | 6 +++--- .github/workflows/protocol-monitors.yml | 2 +- .github/workflows/protocol.yml | 4 ++-- .github/workflows/repo--typo-check.yml | 2 +- .github/workflows/snaefell-ui.yml | 3 +++ .github/workflows/taiko-client--test.yml | 2 +- 11 files changed, 19 insertions(+), 16 deletions(-) diff --git a/.github/workflows/bridge-ui.yml b/.github/workflows/bridge-ui.yml index 68815001452..b767a57be71 100644 --- a/.github/workflows/bridge-ui.yml +++ b/.github/workflows/bridge-ui.yml @@ -17,7 +17,7 @@ on: jobs: build-and-test: - if: ${{ github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') }} + if: ${{ github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') && github.actor != 'dependabot[bot]' }} uses: ./.github/workflows/bridge-ui--ci.yml # Deployment name follow the pattern: deploy___ @@ -37,7 +37,7 @@ jobs: # Hekla testnet deploy_bridge-ui_hekla_preview: - if: ${{ github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') }} + if: ${{ github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') && github.actor != 'dependabot[bot]' }} needs: build-and-test uses: ./.github/workflows/repo--vercel-deploy.yml with: @@ -62,7 +62,7 @@ jobs: # Mainnet deploy_bridge-ui_mainnet_preview: - if: ${{ github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') }} + if: ${{ github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') && github.actor != 'dependabot[bot]' }} needs: build-and-test uses: ./.github/workflows/repo--vercel-deploy.yml with: diff --git a/.github/workflows/docs-site--preview.yml b/.github/workflows/docs-site--preview.yml index ed682196d5a..acd2226b733 100644 --- a/.github/workflows/docs-site--preview.yml +++ b/.github/workflows/docs-site--preview.yml @@ -14,7 +14,7 @@ on: jobs: deploy-docs-site-preview: - if: ${{ github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') && github.event.pull_request.head.repo.fork == false }} + if: ${{ github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') && github.event.pull_request.head.repo.fork == false && github.actor != 'dependabot[bot]' }} runs-on: [arc-runner-set] steps: - name: Install Git diff --git a/.github/workflows/fork-diff--preview.yml b/.github/workflows/fork-diff--preview.yml index cc1af86c65d..a93f356e107 100644 --- a/.github/workflows/fork-diff--preview.yml +++ b/.github/workflows/fork-diff--preview.yml @@ -14,7 +14,7 @@ on: jobs: deploy-fork-diff-preview: - if: ${{ github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') }} + if: ${{ github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') && github.actor != 'dependabot[bot]' }} runs-on: [arc-runner-set] steps: - name: Install Git diff --git a/.github/workflows/guardian-prover-health-check-ui--ci.yml b/.github/workflows/guardian-prover-health-check-ui--ci.yml index abdf477b41b..c2935406a18 100644 --- a/.github/workflows/guardian-prover-health-check-ui--ci.yml +++ b/.github/workflows/guardian-prover-health-check-ui--ci.yml @@ -4,7 +4,6 @@ on: workflow_call jobs: check-guardian-prover-health-check-ui: - if: ${{ github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') && !startsWith(github.head_ref, 'refs/heads/dependabot/') }} runs-on: [taiko-runner] steps: - name: Cancel previous runs diff --git a/.github/workflows/guardian-prover-health-check-ui.yml b/.github/workflows/guardian-prover-health-check-ui.yml index ad0d4aa069c..69b91f2a79e 100644 --- a/.github/workflows/guardian-prover-health-check-ui.yml +++ b/.github/workflows/guardian-prover-health-check-ui.yml @@ -12,6 +12,7 @@ on: jobs: build-and-test: + if: ${{ github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') && github.actor != 'dependabot[bot]' }} uses: ./.github/workflows/guardian-prover-health-check-ui--ci.yml # Deployment name follow the pattern: deploy___ @@ -31,7 +32,7 @@ jobs: deploy_guardians-ui_hekla_preview: - if: ${{ github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') }} + if: ${{ github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') && github.actor != 'dependabot[bot]' }} needs: build-and-test uses: ./.github/workflows/repo--vercel-deploy.yml with: @@ -43,7 +44,7 @@ jobs: vercel_token: ${{ secrets.VERCEL_TOKEN }} deploy_guardians-ui_mainnet_preview: - if: ${{ github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') }} + if: ${{ github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') && github.actor != 'dependabot[bot]' }} needs: build-and-test uses: ./.github/workflows/repo--vercel-deploy.yml with: diff --git a/.github/workflows/guardian-prover-health-check.yml b/.github/workflows/guardian-prover-health-check.yml index fc5f70e5f28..399f3a8dbb7 100644 --- a/.github/workflows/guardian-prover-health-check.yml +++ b/.github/workflows/guardian-prover-health-check.yml @@ -13,7 +13,7 @@ on: jobs: lint-guardian-prover-health-check: - if: ${{ github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') }} + if: ${{ github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') && github.actor != 'dependabot[bot]' }} name: lint-guardian-prover-health-check runs-on: [taiko-runner] steps: @@ -32,7 +32,7 @@ jobs: args: --config=.golangci.yml --timeout=4m test-guardian-prover-health-check: - if: ${{ github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') }} + if: ${{ github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') && github.actor != 'dependabot[bot]' }} runs-on: [taiko-runner] needs: lint-guardian-prover-health-check steps: @@ -58,7 +58,7 @@ jobs: push-guardian-prover-health-check-docker-image: # Skip dependabot PRs - if: ${{ github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') && !startsWith(github.head_ref, 'refs/heads/dependabot/') && github.event.pull_request.head.repo.fork == false }} + if: ${{ github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') && github.actor != 'dependabot[bot]' && github.event.pull_request.head.repo.fork == false }} name: Build and push docker image runs-on: [taiko-runner] diff --git a/.github/workflows/protocol-monitors.yml b/.github/workflows/protocol-monitors.yml index 00c96440f94..c7fadee635d 100644 --- a/.github/workflows/protocol-monitors.yml +++ b/.github/workflows/protocol-monitors.yml @@ -11,7 +11,7 @@ on: jobs: deploy-protocol-monitors: - if: ${{ github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') }} + if: ${{ github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') && github.actor != 'dependabot[bot]' }} runs-on: [taiko-runner] permissions: # Give the necessary permissions for stefanzweifel/git-auto-commit-action. diff --git a/.github/workflows/protocol.yml b/.github/workflows/protocol.yml index 174b02a4df0..852364b0779 100644 --- a/.github/workflows/protocol.yml +++ b/.github/workflows/protocol.yml @@ -15,7 +15,7 @@ on: jobs: build-protocol: - if: ${{ github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') }} + if: ${{ github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') && github.actor != 'dependabot[bot]' }} runs-on: [arc-runner-set] permissions: # Give the necessary permissions for stefanzweifel/git-auto-commit-action. @@ -69,7 +69,7 @@ jobs: pnpm test:deploy:l1 genesis-docker: - if: ${{ github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') }} + if: ${{ github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') && github.actor != 'dependabot[bot]' }} runs-on: [taiko-runner] permissions: # Give the necessary permissions for stefanzweifel/git-auto-commit-action. diff --git a/.github/workflows/repo--typo-check.yml b/.github/workflows/repo--typo-check.yml index 326b57eede9..503638d100f 100644 --- a/.github/workflows/repo--typo-check.yml +++ b/.github/workflows/repo--typo-check.yml @@ -4,7 +4,7 @@ on: [pull_request] jobs: check-for-typos: - if: contains(github.event.pull_request.labels.*.name, 'option.workflow_on') || github.event.pull_request.draft == false && github.head_ref != 'release-please-*' + if: ${{ contains(github.event.pull_request.labels.*.name, 'option.workflow_on') || github.event.pull_request.draft == false && github.head_ref != 'release-please-*' && github.actor != 'dependabot[bot]' }} runs-on: [arc-runner-set] steps: diff --git a/.github/workflows/snaefell-ui.yml b/.github/workflows/snaefell-ui.yml index 68b424b20e7..7a0971ca25c 100644 --- a/.github/workflows/snaefell-ui.yml +++ b/.github/workflows/snaefell-ui.yml @@ -5,11 +5,13 @@ on: jobs: build-and-test: + if: ${{ github.actor != 'dependabot[bot]' }} uses: ./.github/workflows/snaefell-ui--ci.yml # Deployment name follow the pattern: deploy___ # The following Vercel project is not found, so disable it at least for now. deploy_snaefell-ui_mainnet_preview: + if: ${{ github.actor != 'dependabot[bot]' }} needs: build-and-test uses: ./.github/workflows/repo--vercel-deploy.yml with: @@ -21,6 +23,7 @@ jobs: vercel_token: ${{ secrets.VERCEL_TOKEN }} deploy_snaefell-ui_mainnet_production: + if: ${{ github.actor != 'dependabot[bot]' }} needs: build-and-test uses: ./.github/workflows/repo--vercel-deploy.yml with: diff --git a/.github/workflows/taiko-client--test.yml b/.github/workflows/taiko-client--test.yml index f83ff6ed172..0160b8a8596 100644 --- a/.github/workflows/taiko-client--test.yml +++ b/.github/workflows/taiko-client--test.yml @@ -13,7 +13,7 @@ on: jobs: lint: - if: ${{ github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') }} + if: ${{ github.event.pull_request.draft == false && !startsWith(github.head_ref, 'release-please') && github.actor != 'dependabot[bot]' }} name: Lint runs-on: [ubuntu-latest] steps: