diff options
| author | Joel Challis <git@zvecr.com> | 2025-12-19 02:23:29 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-19 02:23:29 +0000 |
| commit | 54e8fad959d6a6e53e08c62ac3a3c4d4bdc6c957 (patch) | |
| tree | c339d200072a0bf64548f55fb3a988540513eaab /.github | |
| parent | 2c847b0350cfef92f347f27a0ebe9f0187e95b5e (diff) | |
Ignore merge commits on bootstrap testing PRs (#25884)
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/bootstrap_testing.yml | 37 |
1 files changed, 33 insertions, 4 deletions
diff --git a/.github/workflows/bootstrap_testing.yml b/.github/workflows/bootstrap_testing.yml index c80d89a218..16abaee66d 100644 --- a/.github/workflows/bootstrap_testing.yml +++ b/.github/workflows/bootstrap_testing.yml | |||
| @@ -4,20 +4,42 @@ on: | |||
| 4 | push: | 4 | push: |
| 5 | branches: [master, develop, xap] | 5 | branches: [master, develop, xap] |
| 6 | paths: | 6 | paths: |
| 7 | - "util/env-bootstrap.sh" | 7 | - 'util/env-bootstrap.sh' |
| 8 | - ".github/workflows/bootstrap_testing.yml" | 8 | - '.github/workflows/bootstrap_testing.yml' |
| 9 | pull_request: | 9 | pull_request: |
| 10 | paths: | 10 | paths: |
| 11 | - "util/env-bootstrap.sh" | 11 | - 'util/env-bootstrap.sh' |
| 12 | - ".github/workflows/bootstrap_testing.yml" | 12 | - '.github/workflows/bootstrap_testing.yml' |
| 13 | workflow_dispatch: | 13 | workflow_dispatch: |
| 14 | 14 | ||
| 15 | permissions: | 15 | permissions: |
| 16 | contents: read | 16 | contents: read |
| 17 | 17 | ||
| 18 | jobs: | 18 | jobs: |
| 19 | prep: | ||
| 20 | runs-on: ubuntu-latest | ||
| 21 | |||
| 22 | if: ${{ github.event_name == 'pull_request' }} | ||
| 23 | |||
| 24 | outputs: | ||
| 25 | any_changed: ${{ steps.file_changes.outputs.any_changed }} | ||
| 26 | |||
| 27 | steps: | ||
| 28 | - name: Get changed files | ||
| 29 | id: file_changes | ||
| 30 | uses: tj-actions/changed-files@v47 | ||
| 31 | with: | ||
| 32 | use_rest_api: true | ||
| 33 | files: | | ||
| 34 | util/env-bootstrap.sh | ||
| 35 | .github/workflows/bootstrap_testing.yml | ||
| 36 | |||
| 19 | bootstrap-test-linux: | 37 | bootstrap-test-linux: |
| 20 | name: Bootstrap (Linux) | 38 | name: Bootstrap (Linux) |
| 39 | |||
| 40 | needs: prep | ||
| 41 | if: ${{ github.event_name != 'pull_request' || needs.prep.outputs.any_changed == 'true' }} | ||
| 42 | |||
| 21 | runs-on: ubuntu-latest | 43 | runs-on: ubuntu-latest |
| 22 | 44 | ||
| 23 | strategy: | 45 | strategy: |
| @@ -163,6 +185,10 @@ jobs: | |||
| 163 | 185 | ||
| 164 | bootstrap-test-macos: | 186 | bootstrap-test-macos: |
| 165 | name: Bootstrap (macOS) | 187 | name: Bootstrap (macOS) |
| 188 | |||
| 189 | needs: prep | ||
| 190 | if: ${{ github.event_name != 'pull_request' || needs.prep.outputs.any_changed == 'true' }} | ||
| 191 | |||
| 166 | strategy: | 192 | strategy: |
| 167 | fail-fast: false | 193 | fail-fast: false |
| 168 | matrix: | 194 | matrix: |
| @@ -208,6 +234,9 @@ jobs: | |||
| 208 | bootstrap-test-windows: | 234 | bootstrap-test-windows: |
| 209 | name: Bootstrap (Windows) | 235 | name: Bootstrap (Windows) |
| 210 | 236 | ||
| 237 | needs: prep | ||
| 238 | if: ${{ github.event_name != 'pull_request' || needs.prep.outputs.any_changed == 'true' }} | ||
| 239 | |||
| 211 | strategy: | 240 | strategy: |
| 212 | fail-fast: false | 241 | fail-fast: false |
| 213 | matrix: | 242 | matrix: |
