Skip to content

Commit 2d2c88e

Browse files
committed
Widen push branch filters on GitHub Actions workflows
1 parent c3b16ae commit 2d2c88e

5 files changed

Lines changed: 22 additions & 9 deletions

File tree

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ on:
55
push:
66
branches:
77
- trunk
8-
- 'release/**'
9-
- 'wp/**'
8+
- 'release/[0-9]+.[0-9]'
9+
- 'wp/[0-9]+.[0-9]'
10+
- wp/latest
11+
- wp/next
1012
workflow_dispatch:
1113
inputs:
1214
version:

‎.github/workflows/create-block.yml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ name: Create Block
33
on:
44
pull_request:
55
push:
6-
branches: [trunk, wp/latest]
6+
branches:
7+
- trunk
8+
- 'release/[0-9]+.[0-9]'
9+
- 'wp/[0-9]+.[0-9]'
10+
- wp/latest
11+
- wp/next
712

813
# Cancels all previous workflow runs for pull requests that have not completed.
914
concurrency:

‎.github/workflows/end2end-test.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ on:
55
push:
66
branches:
77
- trunk
8-
- 'release/**'
9-
- 'wp/**'
8+
- 'release/[0-9]+.[0-9]'
9+
- 'wp/[0-9]+.[0-9]'
10+
- wp/latest
11+
- wp/next
1012

1113
# Cancels all previous workflow runs for pull requests that have not completed.
1214
concurrency:

‎.github/workflows/static-checks.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ on:
55
push:
66
branches:
77
- trunk
8-
- 'release/**'
9-
- 'wp/**'
8+
- 'release/[0-9]+.[0-9]'
9+
- 'wp/[0-9]+.[0-9]'
10+
- wp/latest
11+
- wp/next
1012

1113
# Cancels all previous workflow runs for pull requests that have not completed.
1214
concurrency:

‎.github/workflows/unit-test.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ on:
77
push:
88
branches:
99
- trunk
10-
- 'release/**'
11-
- 'wp/**'
10+
- 'release/[0-9]+.[0-9]'
11+
- 'wp/[0-9]+.[0-9]'
12+
- wp/latest
13+
- wp/next
1214
# Allow manually triggering the workflow.
1315
workflow_dispatch:
1416

0 commit comments

Comments
 (0)