|
55 | 55 | steps: |
56 | 56 | - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3 |
57 | 57 | id: filter |
| 58 | + if: github.event_name == 'pull_request' |
58 | 59 | with: |
| 60 | + # Note: `docs` output is currently unused. The docs changes are tested by maven-checks job, leveraging GIB impact analysis. |
| 61 | + # TODO remove use of non_docs filters and remove `path-filters` job. Use GIB impact analysis to guard job skipping. |
59 | 62 | filters: | |
60 | 63 | docs: 'docs/**' |
61 | 64 | non_docs: '!docs/**' |
@@ -100,7 +103,7 @@ jobs: |
100 | 103 |
|
101 | 104 | artifact-checks: |
102 | 105 | needs: path-filters |
103 | | - if: needs.path-filters.outputs.non_docs == 'true' |
| 106 | + if: github.event_name != 'pull_request' || needs.path-filters.outputs.non_docs == 'true' |
104 | 107 | runs-on: ubuntu-latest |
105 | 108 | timeout-minutes: 45 |
106 | 109 | steps: |
@@ -189,7 +192,7 @@ jobs: |
189 | 192 |
|
190 | 193 | error-prone-checks: |
191 | 194 | needs: path-filters |
192 | | - if: needs.path-filters.outputs.non_docs == 'true' |
| 195 | + if: github.event_name != 'pull_request' || needs.path-filters.outputs.non_docs == 'true' |
193 | 196 | runs-on: ubuntu-latest |
194 | 197 | timeout-minutes: 45 |
195 | 198 | steps: |
@@ -219,7 +222,7 @@ jobs: |
219 | 222 |
|
220 | 223 | test-jdbc-compatibility: |
221 | 224 | needs: path-filters |
222 | | - if: needs.path-filters.outputs.non_docs == 'true' |
| 225 | + if: github.event_name != 'pull_request' || needs.path-filters.outputs.non_docs == 'true' |
223 | 226 | runs-on: ubuntu-latest |
224 | 227 | timeout-minutes: 30 |
225 | 228 | steps: |
@@ -261,7 +264,7 @@ jobs: |
261 | 264 |
|
262 | 265 | hive-tests: |
263 | 266 | needs: path-filters |
264 | | - if: needs.path-filters.outputs.non_docs == 'true' |
| 267 | + if: github.event_name != 'pull_request' || needs.path-filters.outputs.non_docs == 'true' |
265 | 268 | runs-on: ubuntu-latest |
266 | 269 | strategy: |
267 | 270 | fail-fast: false |
@@ -319,7 +322,7 @@ jobs: |
319 | 322 |
|
320 | 323 | test-other-modules: |
321 | 324 | needs: path-filters |
322 | | - if: needs.path-filters.outputs.non_docs == 'true' |
| 325 | + if: github.event_name != 'pull_request' || needs.path-filters.outputs.non_docs == 'true' |
323 | 326 | runs-on: ubuntu-latest |
324 | 327 | timeout-minutes: 60 |
325 | 328 | steps: |
@@ -408,7 +411,7 @@ jobs: |
408 | 411 |
|
409 | 412 | build-test-matrix: |
410 | 413 | needs: path-filters |
411 | | - if: needs.path-filters.outputs.non_docs == 'true' |
| 414 | + if: github.event_name != 'pull_request' || needs.path-filters.outputs.non_docs == 'true' |
412 | 415 | runs-on: ubuntu-latest |
413 | 416 | outputs: |
414 | 417 | matrix: ${{ steps.set-matrix.outputs.matrix }} |
@@ -833,7 +836,7 @@ jobs: |
833 | 836 |
|
834 | 837 | build-pt: |
835 | 838 | needs: path-filters |
836 | | - if: needs.path-filters.outputs.non_docs == 'true' |
| 839 | + if: github.event_name != 'pull_request' || needs.path-filters.outputs.non_docs == 'true' |
837 | 840 | runs-on: ubuntu-latest |
838 | 841 | outputs: |
839 | 842 | matrix: ${{ steps.set-matrix.outputs.matrix }} |
|
0 commit comments