Skip to content

Commit 9b6d142

Browse files
committed
build(ci): make build-guests run on pr to master
1 parent 0e50211 commit 9b6d142

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,12 @@ jobs:
123123
# Generate guest program list dynamically
124124
generate-guest-matrix:
125125
runs-on: ubuntu-latest
126-
# Run on main branches, release branches, or when explicitly requested
126+
# Run on main branches, release branches, PRs to master, or when explicitly requested
127127
if: |
128128
github.ref == 'refs/heads/master' ||
129129
startsWith(github.ref, 'refs/heads/release/') ||
130130
startsWith(github.ref, 'refs/tags/v') ||
131+
github.base_ref == 'master' ||
131132
contains(github.event.pull_request.labels.*.name, 'full-build')
132133
outputs:
133134
guest-matrix: ${{ steps.generate-matrix.outputs.guest-matrix }}
@@ -189,7 +190,7 @@ jobs:
189190
collect-guests:
190191
runs-on: ubuntu-latest
191192
needs: [generate-guest-matrix, build-guest]
192-
if: github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'full-build')
193+
if: github.event_name == 'push' || github.base_ref == 'master' || contains(github.event.pull_request.labels.*.name, 'full-build')
193194
steps:
194195
- name: Download all guest artifacts
195196
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)