Skip to content

Commit 5ee66f9

Browse files
committed
Do not run CI on internal PRs.
1 parent aef8968 commit 5ee66f9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ permissions:
77
contents: read
88

99
concurrency:
10-
group: ${{ github.ref }}
10+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1111
cancel-in-progress: true
1212

1313
jobs:
@@ -31,6 +31,10 @@ jobs:
3131
WP_ADMIN_PASSWORD: admin
3232
WP_ADMIN_EMAIL: admin@test.test
3333

34+
if: |
35+
github.event_name == 'push' ||
36+
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == true)
37+
3438
runs-on: ${{ matrix.os }}
3539

3640
name: PHP ${{ matrix.php-version }} on ${{ matrix.os }}

0 commit comments

Comments
 (0)