Skip to content

Commit 4f469ae

Browse files
committed
ci: specify the PR branch target
1 parent 5ac65a3 commit 4f469ae

File tree

3 files changed

+4
-18
lines changed

3 files changed

+4
-18
lines changed

.github/workflows/lint-and-analyse.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@ on:
55
pull_request:
66
types: [opened, synchronize, reopened]
77
branches:
8-
# Branches from forks have the form 'user:branch-name' so we only run
9-
# this job on pull_request events for branches that look like fork
10-
# branches. Without this we would end up running this job twice for non
11-
# forked PRs, once for the push and then once for opening the PR.
12-
# Source: https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662/10
13-
- '**:**'
8+
- main
149

1510
jobs:
1611
lint-php:

.github/workflows/lint-docs.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,8 @@ on:
55
pull_request:
66
types: [opened, synchronize, reopened]
77
branches:
8-
# Branches from forks have the form 'user:branch-name' so we only run
9-
# this job on pull_request events for branches that look like fork
10-
# branches. Without this we would end up running this job twice for non
11-
# forked PRs, once for the push and then once for opening the PR.
12-
# Source: https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662/10
13-
- '**:**'
8+
- main
9+
1410
jobs:
1511
lint-docs:
1612
runs-on: ubuntu-latest

.github/workflows/tests.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@ on:
55
pull_request:
66
types: [opened, synchronize, reopened]
77
branches:
8-
# Branches from forks have the form 'user:branch-name' so we only run
9-
# this job on pull_request events for branches that look like fork
10-
# branches. Without this we would end up running this job twice for non
11-
# forked PRs, once for the push and then once for opening the PR.
12-
# Source: https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662/10
13-
- '**:**'
8+
- main
149

1510
jobs:
1611
test-php:

0 commit comments

Comments
 (0)