Skip to content

Commit

Permalink
Remove repository checks
Browse files Browse the repository at this point in the history
Most of these job are only run manually anyway, so we shouldn't need to prohibit them from running on forks.
Furthermore, these checks make it much harder to test changes to this workflow on a fork.
See #32114 (comment)
  • Loading branch information
ockham committed Jun 18, 2021
1 parent 14f453f commit 6c5a931
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build-plugin-zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ jobs:
runs-on: ubuntu-latest
needs: compute-stable-branches
if: |
github.repository == 'WordPress/gutenberg' &&
github.event_name == 'workflow_dispatch' && (
(
github.ref == 'refs/heads/trunk' ||
Expand Down Expand Up @@ -146,7 +145,7 @@ jobs:
name: Build Release Artifact
runs-on: ubuntu-latest
needs: bump-version
if: ${{ ( github.repository == 'WordPress/gutenberg' && always() ) || ( github.event_name == 'pull_request' && always() ) }}
if: always()

steps:
- name: Checkout code
Expand Down Expand Up @@ -204,7 +203,6 @@ jobs:
name: Create Release Draft and Attach Asset
needs: [bump-version, build]
runs-on: ubuntu-latest
if: ${{ github.repository == 'WordPress/gutenberg' }}

steps:
- name: Set Release Version
Expand Down

0 comments on commit 6c5a931

Please sign in to comment.