Skip to content

Commit

Permalink
Limit when release artifacts are built on forks: pt. 2 (#32494)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
desrosj authored Jun 7, 2021
1 parent 2826f50 commit 8fbc4d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-plugin-zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8fbc4d6

Please sign in to comment.