diff --git a/.github/workflows/cd-deploy-nodes-gcp.patch-external.yml b/.github/workflows/cd-deploy-nodes-gcp.patch-external.yml index 869d09cc55b..5c1e05a56e2 100644 --- a/.github/workflows/cd-deploy-nodes-gcp.patch-external.yml +++ b/.github/workflows/cd-deploy-nodes-gcp.patch-external.yml @@ -16,7 +16,7 @@ jobs: build: name: Build CD Docker / Build images # Only run on PRs from external repositories, skipping ZF branches and tags. - if: ${{ startsWith(github.event_name, 'pull') && github.event.head.repo.fork }} + if: ${{ startsWith(github.event_name, 'pull') && github.event.pull_request.head.repo.fork }} runs-on: ubuntu-latest steps: - run: 'echo "Skipping job on fork"' diff --git a/.github/workflows/cd-deploy-nodes-gcp.yml b/.github/workflows/cd-deploy-nodes-gcp.yml index 4fe6f1a67bc..0db1af6b2bc 100644 --- a/.github/workflows/cd-deploy-nodes-gcp.yml +++ b/.github/workflows/cd-deploy-nodes-gcp.yml @@ -118,7 +118,7 @@ jobs: name: Build CD Docker # Skip PRs from external repositories, let them pass, and then Mergify will check them. # This workflow also runs on release tags, the event name check will run it on releases. - if: ${{ !startsWith(github.event_name, 'pull') || !github.event.head.repo.fork }} + if: ${{ !startsWith(github.event_name, 'pull') || !github.event.pull_request.head.repo.fork }} uses: ./.github/workflows/sub-build-docker-image.yml with: dockerfile_path: ./docker/Dockerfile diff --git a/.github/workflows/ci-integration-tests-gcp.patch-external.yml b/.github/workflows/ci-integration-tests-gcp.patch-external.yml index 2d0cb883de4..8d9d68ed5dd 100644 --- a/.github/workflows/ci-integration-tests-gcp.patch-external.yml +++ b/.github/workflows/ci-integration-tests-gcp.patch-external.yml @@ -16,7 +16,7 @@ jobs: get-available-disks: name: Check if cached state disks exist for Mainnet / Check if cached state disks exist # Only run on PRs from external repositories. - if: ${{ startsWith(github.event_name, 'pull') && github.event.head.repo.fork }} + if: ${{ startsWith(github.event_name, 'pull') && github.event.pull_request.head.repo.fork }} runs-on: ubuntu-latest steps: - run: 'echo "Skipping job on fork"' diff --git a/.github/workflows/ci-integration-tests-gcp.yml b/.github/workflows/ci-integration-tests-gcp.yml index 49aa8b2728b..902575c56a5 100644 --- a/.github/workflows/ci-integration-tests-gcp.yml +++ b/.github/workflows/ci-integration-tests-gcp.yml @@ -113,7 +113,7 @@ jobs: get-available-disks: name: Check if cached state disks exist for ${{ inputs.network || vars.ZCASH_NETWORK }} # Skip PRs from external repositories, let them pass, and then Mergify will check them - if: ${{ !startsWith(github.event_name, 'pull') || !github.event.head.repo.fork }} + if: ${{ !startsWith(github.event_name, 'pull') || !github.event.pull_request.head.repo.fork }} uses: ./.github/workflows/sub-find-cached-disks.yml with: network: ${{ inputs.network || vars.ZCASH_NETWORK }} @@ -124,7 +124,7 @@ jobs: # Some outputs are ignored, because we don't run those jobs on testnet. get-available-disks-testnet: name: Check if cached state disks exist for testnet - if: ${{ !startsWith(github.event_name, 'pull') || !github.event.head.repo.fork }} + if: ${{ !startsWith(github.event_name, 'pull') || !github.event.pull_request.head.repo.fork }} uses: ./.github/workflows/sub-find-cached-disks.yml with: network: 'Testnet' @@ -136,7 +136,7 @@ jobs: # testnet when running the image. build: name: Build CI Docker - if: ${{ !startsWith(github.event_name, 'pull') || !github.event.head.repo.fork }} + if: ${{ !startsWith(github.event_name, 'pull') || !github.event.pull_request.head.repo.fork }} uses: ./.github/workflows/sub-build-docker-image.yml with: dockerfile_path: ./docker/Dockerfile diff --git a/.github/workflows/ci-lint.yml b/.github/workflows/ci-lint.yml index aacfdfcc1b7..3640a64db0e 100644 --- a/.github/workflows/ci-lint.yml +++ b/.github/workflows/ci-lint.yml @@ -151,7 +151,7 @@ jobs: # This gives an error when run on PRs from external repositories, so we skip it. - name: validate-dependabot # If this is a PR, check that the PR source is a local branch. Always runs on non-PRs. - if: ${{ !startsWith(github.event_name, 'pull') || !github.event.head.repo.fork }} + if: ${{ !startsWith(github.event_name, 'pull') || !github.event.pull_request.head.repo.fork }} uses: marocchino/validate-dependabot@v2.1.0 codespell: diff --git a/.github/workflows/ci-unit-tests-docker.patch-external.yml b/.github/workflows/ci-unit-tests-docker.patch-external.yml index 8cf8b769cae..2db50e52f7a 100644 --- a/.github/workflows/ci-unit-tests-docker.patch-external.yml +++ b/.github/workflows/ci-unit-tests-docker.patch-external.yml @@ -15,7 +15,7 @@ jobs: build: name: Build CI Docker / Build images # Only run on PRs from external repositories. - if: ${{ startsWith(github.event_name, 'pull') && github.event.head.repo.fork }} + if: ${{ startsWith(github.event_name, 'pull') && github.event.pull_request.head.repo.fork }} runs-on: ubuntu-latest steps: - run: 'echo "Skipping job on fork"' diff --git a/.github/workflows/ci-unit-tests-docker.yml b/.github/workflows/ci-unit-tests-docker.yml index ee3fa9385a7..46b67c79fc4 100644 --- a/.github/workflows/ci-unit-tests-docker.yml +++ b/.github/workflows/ci-unit-tests-docker.yml @@ -92,7 +92,7 @@ jobs: build: name: Build CI Docker # Skip PRs from external repositories, let them pass, and then Mergify will check them - if: ${{ !startsWith(github.event_name, 'pull') || !github.event.head.repo.fork }} + if: ${{ !startsWith(github.event_name, 'pull') || !github.event.pull_request.head.repo.fork }} uses: ./.github/workflows/sub-build-docker-image.yml with: dockerfile_path: ./docker/Dockerfile diff --git a/.github/workflows/docs-deploy-firebase.patch-external.yml b/.github/workflows/docs-deploy-firebase.patch-external.yml index f37a9dc414a..8478e4c2ded 100644 --- a/.github/workflows/docs-deploy-firebase.patch-external.yml +++ b/.github/workflows/docs-deploy-firebase.patch-external.yml @@ -15,7 +15,7 @@ jobs: build-docs-book: name: Build and Deploy Zebra Book Docs # Only run on PRs from external repositories. - if: ${{ startsWith(github.event_name, 'pull') && github.event.head.repo.fork }} + if: ${{ startsWith(github.event_name, 'pull') && github.event.pull_request.head.repo.fork }} runs-on: ubuntu-latest steps: - run: 'echo "Skipping job on fork"' diff --git a/.github/workflows/docs-deploy-firebase.yml b/.github/workflows/docs-deploy-firebase.yml index 60cd8bf7a45..ec274162a6b 100644 --- a/.github/workflows/docs-deploy-firebase.yml +++ b/.github/workflows/docs-deploy-firebase.yml @@ -71,7 +71,7 @@ jobs: build-docs-book: name: Build and Deploy Zebra Book Docs # Skip PRs from external repositories, let them pass, and then Mergify will check them - if: ${{ !startsWith(github.event_name, 'pull') || !github.event.head.repo.fork }} + if: ${{ !startsWith(github.event_name, 'pull') || !github.event.pull_request.head.repo.fork }} timeout-minutes: 5 runs-on: ubuntu-latest permissions: @@ -125,7 +125,7 @@ jobs: build-docs-internal: name: Build and Deploy Zebra Internal Docs - if: ${{ !startsWith(github.event_name, 'pull') || !github.event.head.repo.fork }} + if: ${{ !startsWith(github.event_name, 'pull') || !github.event.pull_request.head.repo.fork }} timeout-minutes: 45 runs-on: ubuntu-latest permissions: