From 54733d87aeaec04342888096e220f96154da44a5 Mon Sep 17 00:00:00 2001 From: Jon Desrosiers Date: Mon, 7 Jun 2021 15:56:51 -0400 Subject: [PATCH] Limit when release artifacts are built on forks: pt. 2 (#32494) * Limit when release artifacts are built on forks. Previously in #32114, adjustments were made to GHA workflow files to limit when workflows ran on forked repositories. But this missed the second job in the workflow that builds the release artifact. Because it was set to always run even though the previous job is required, it has continued to run on forks. * Ensure the artifact is built always, even when the preceding job does not run. (cherry picked from commit 8fbc4d617f6d85da7f5496e8d49e869c7ecca011) --- .github/workflows/build-plugin-zip.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-plugin-zip.yml b/.github/workflows/build-plugin-zip.yml index 94e5743082eaa5..613d7c6c0479cd 100644 --- a/.github/workflows/build-plugin-zip.yml +++ b/.github/workflows/build-plugin-zip.yml @@ -111,7 +111,7 @@ jobs: name: Build Release Artifact runs-on: ubuntu-latest needs: bump-version - if: always() + if: ${{ ( github.repository == 'WordPress/gutenberg' && always() ) || ( github.event_name == 'pull_request' && always() ) }} steps: - name: Checkout code