From 210c585c5688925135e927c21adc4a78401c75b8 Mon Sep 17 00:00:00 2001 From: Roger <50648015+RogerLamTd@users.noreply.github.com> Date: Thu, 2 Jan 2025 11:12:08 +0800 Subject: [PATCH] chore(repo): don't run docker build and push on forks (#18687) --- .github/workflows/eventindexer.yml | 2 +- .github/workflows/guardian-prover-health-check.yml | 2 +- .github/workflows/relayer.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/eventindexer.yml b/.github/workflows/eventindexer.yml index 6158d07fdb2..2d9efa97490 100644 --- a/.github/workflows/eventindexer.yml +++ b/.github/workflows/eventindexer.yml @@ -62,7 +62,7 @@ jobs: push-eventindexer-docker-image: # Skip dependabot PRs - if: ${{ github.event_name == 'pull_request' && ! startsWith(github.head_ref, 'refs/heads/dependabot/') && !startsWith(github.head_ref, 'release-please') }} + if: ${{ github.event_name == 'pull_request' && ! startsWith(github.head_ref, 'refs/heads/dependabot/') && !startsWith(github.head_ref, 'release-please') && github.event.pull_request.head.repo.fork == false }} name: Build and push docker image runs-on: [arc-runner-set] diff --git a/.github/workflows/guardian-prover-health-check.yml b/.github/workflows/guardian-prover-health-check.yml index 7bd6a886357..fc5f70e5f28 100644 --- a/.github/workflows/guardian-prover-health-check.yml +++ b/.github/workflows/guardian-prover-health-check.yml @@ -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/')) }} + 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 }} name: Build and push docker image runs-on: [taiko-runner] diff --git a/.github/workflows/relayer.yml b/.github/workflows/relayer.yml index 9c0fe4d683a..9549b5f20b6 100644 --- a/.github/workflows/relayer.yml +++ b/.github/workflows/relayer.yml @@ -62,7 +62,7 @@ jobs: push-relayer-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/') }} + 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 }} name: Build and push docker image runs-on: [arc-runner-set]