Skip to content

Commit 2f1101e

Browse files
ampagenttmm
andcommitted
ci: check pull requests whatever their base
The Swift, Swift (macOS), zbugs screenshots and public JS workflows ran only for pull requests into main, so a PR stacked on another got no checks. They now run for a pull request into any branch. Co-authored-by: tmm <tmm@tmm.dev> Amp-Thread-ID: https://ampcode.com/threads/T-01a19a37-5aa9-7256-bff5-cdc47c01a1fe
1 parent 70f469d commit 2f1101e

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎.github/workflows/public-js.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ on:
1313
workflow_dispatch:
1414
push:
1515
branches: [main]
16+
# Any base, so a PR stacked on another one gets checked too.
1617
pull_request:
17-
branches: [main]
1818

1919
concurrency:
2020
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'

‎.github/workflows/swift-macos.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ on:
1212
- 'packages/zero-conformance/**'
1313
- 'apps/zbugs-swift/**'
1414
- '.github/workflows/swift-macos.yml'
15+
# Any base, so a PR stacked on another one gets checked too.
1516
pull_request:
16-
branches: [main]
1717
paths:
1818
- 'swift/**'
1919
- 'packages/zero-conformance/**'

‎.github/workflows/swift.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ on:
88
push:
99
# swift-client is the development branch until the client lands on main.
1010
branches: [main, swift-client]
11+
# Any base, so a PR stacked on another one gets checked too.
1112
pull_request:
12-
branches: [main]
1313

1414
concurrency:
1515
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'

‎.github/workflows/zbugs-screenshots.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ on:
2121
- 'swift/Sources/ZeroTesting/**'
2222
- 'swift/TestHost/**'
2323
- '.github/workflows/zbugs-screenshots.yml'
24+
# Any base, so a PR stacked on another one gets checked too.
2425
pull_request:
25-
branches: [main]
2626
paths:
2727
- 'apps/zbugs-swift/**'
2828
- 'swift/Sources/ZeroUI/**'

0 commit comments

Comments
 (0)