From 44c377a3bdea16c3e4e4ef83c182b4522e323ba5 Mon Sep 17 00:00:00 2001 From: Alex Gartner Date: Mon, 4 Nov 2024 11:09:58 -0800 Subject: [PATCH] fix(ci): do not run rpcimportable on forks (#3089) --- .github/workflows/ci.yml | 2 +- .github/workflows/reusable-e2e.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 52c31eeaa9..8a44e995a6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -98,7 +98,7 @@ jobs: timeout-minutes: 15 # do not run this on forks as they are not installable # it will still be check in the merge queue in this case - if: github.repository == 'zeta-chain/node' + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'zeta-chain/node' steps: - uses: actions/checkout@v4 - name: Set up Go diff --git a/.github/workflows/reusable-e2e.yml b/.github/workflows/reusable-e2e.yml index aaac140960..88c42466a5 100644 --- a/.github/workflows/reusable-e2e.yml +++ b/.github/workflows/reusable-e2e.yml @@ -40,7 +40,7 @@ jobs: - name: Login to Docker Hub registry uses: docker/login-action@v3 - if: (github.event_name == 'push' && github.repository == 'zeta-chain/node') || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'zeta-chain/node') + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'zeta-chain/node' with: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_READ_ONLY }}