Skip to content

Commit 244bd02

Browse files
committed
Run build job only on manual trigger, or on gutenberg repo
1 parent 4549056 commit 244bd02

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build-plugin-zip.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,12 @@ jobs:
145145
name: Build Release Artifact
146146
runs-on: ubuntu-latest
147147
needs: bump-version
148-
if: always()
148+
if: |
149+
always() && (
150+
github.event_name == 'pull_request' ||
151+
github.event_name == 'workflow_dispatch' ||
152+
github.repository == 'WordPress/gutenberg'
153+
)
149154
150155
steps:
151156
- name: Checkout code

0 commit comments

Comments
 (0)