diff --git a/.github/workflows/build-plugin-zip.yml b/.github/workflows/build-plugin-zip.yml index c49378361b3a0..6851aa5f63611 100644 --- a/.github/workflows/build-plugin-zip.yml +++ b/.github/workflows/build-plugin-zip.yml @@ -55,7 +55,8 @@ jobs: name: Create Release Draft and Attach Asset needs: build runs-on: ubuntu-latest - if: startsWith(github.ref, 'refs/tags/v') + if: ${{ github.repository == 'WordPress/gutenberg' && startsWith(github.ref, 'refs/tags/v') }} + steps: - name: Set Release Version id: get_release_version diff --git a/.github/workflows/create-block.yml b/.github/workflows/create-block.yml index c8427ddbfa2cc..8ea257510b6aa 100644 --- a/.github/workflows/create-block.yml +++ b/.github/workflows/create-block.yml @@ -24,6 +24,7 @@ jobs: checks: name: Checks runs-on: ubuntu-latest + if: ${{ github.repository == 'WordPress/gutenberg' || github.event_name == 'pull_request' }} strategy: fail-fast: false matrix: diff --git a/.github/workflows/end2end-test.yml b/.github/workflows/end2end-test.yml index 1161c9b8e0cdb..433b52feb212c 100644 --- a/.github/workflows/end2end-test.yml +++ b/.github/workflows/end2end-test.yml @@ -22,9 +22,8 @@ concurrency: jobs: admin: name: Admin - ${{ matrix.part }} - runs-on: ubuntu-latest - + if: ${{ github.repository == 'WordPress/gutenberg' || github.event_name == 'pull_request' }} strategy: fail-fast: false matrix: diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index 8f59d35b7e392..c00810a2cb9c4 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -17,8 +17,8 @@ concurrency: jobs: performance: name: Run performance tests - runs-on: ubuntu-latest + if: ${{ github.repository == 'WordPress/gutenberg' }} steps: - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 diff --git a/.github/workflows/pull-request-automation.yml b/.github/workflows/pull-request-automation.yml index 46274e7b41448..2a1c0fd61a24f 100644 --- a/.github/workflows/pull-request-automation.yml +++ b/.github/workflows/pull-request-automation.yml @@ -7,6 +7,7 @@ name: Pull request automation jobs: pull-request-automation: runs-on: ubuntu-latest + if: ${{ github.repository == 'WordPress/gutenberg' }} steps: # Checkout defaults to using the branch which triggered the event, which # isn't necessarily `trunk` (e.g. in the case of a merge). diff --git a/.github/workflows/rnmobile-android-runner.yml b/.github/workflows/rnmobile-android-runner.yml index 1a393327f4cf7..0b3064b88248a 100644 --- a/.github/workflows/rnmobile-android-runner.yml +++ b/.github/workflows/rnmobile-android-runner.yml @@ -19,6 +19,7 @@ concurrency: jobs: test: runs-on: macos-latest + if: ${{ github.repository == 'WordPress/gutenberg' || github.event_name == 'pull_request' }} strategy: matrix: native-test-name: [gutenberg-editor-gallery] diff --git a/.github/workflows/rnmobile-ios-runner.yml b/.github/workflows/rnmobile-ios-runner.yml index 522345514758f..0522820599ff5 100644 --- a/.github/workflows/rnmobile-ios-runner.yml +++ b/.github/workflows/rnmobile-ios-runner.yml @@ -19,6 +19,7 @@ concurrency: jobs: test: runs-on: macos-latest + if: ${{ github.repository == 'WordPress/gutenberg' || github.event_name == 'pull_request' }} strategy: matrix: native-test-name: [gutenberg-editor-gallery] diff --git a/.github/workflows/stale-issue-needs-info.yml b/.github/workflows/stale-issue-needs-info.yml index b537469fbafb5..4651dd7c69347 100644 --- a/.github/workflows/stale-issue-needs-info.yml +++ b/.github/workflows/stale-issue-needs-info.yml @@ -6,6 +6,7 @@ on: jobs: stale: runs-on: ubuntu-latest + if: ${{ github.repository == 'WordPress/gutenberg' }} steps: - uses: actions/stale@996798eb71ef485dc4c7b4d3285842d714040c4a # v3.0.17 with: diff --git a/.github/workflows/static-checks.yml b/.github/workflows/static-checks.yml index b38b7be43f3a0..c47e236b7467d 100644 --- a/.github/workflows/static-checks.yml +++ b/.github/workflows/static-checks.yml @@ -18,8 +18,8 @@ concurrency: jobs: check: name: All - runs-on: ubuntu-latest + if: ${{ github.repository == 'WordPress/gutenberg' || github.event_name == 'pull_request' }} steps: - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 diff --git a/.github/workflows/storybook-pages.yml b/.github/workflows/storybook-pages.yml index 5d9de94c4267b..4c8008f6cb37a 100644 --- a/.github/workflows/storybook-pages.yml +++ b/.github/workflows/storybook-pages.yml @@ -8,6 +8,7 @@ on: jobs: deploy: runs-on: ubuntu-latest + if: ${{ github.repository == 'WordPress/gutenberg' }} steps: - name: Checkout uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 3ff5cbe47cb44..fdd4321bc0b80 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -21,6 +21,8 @@ jobs: unit-js: name: JavaScript runs-on: ubuntu-latest + if: ${{ github.repository == 'WordPress/gutenberg' || github.event_name == 'pull_request' }} + strategy: fail-fast: false matrix: @@ -59,8 +61,8 @@ jobs: unit-php: name: PHP - runs-on: ubuntu-latest + if: ${{ github.repository == 'WordPress/gutenberg' || github.event_name == 'pull_request' }} steps: - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 @@ -102,8 +104,8 @@ jobs: mobile-unit-js: name: Mobile - runs-on: ubuntu-latest + if: ${{ github.repository == 'WordPress/gutenberg' || github.event_name == 'pull_request' }} steps: - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4