|
37 | 37 | build: |
38 | 38 | runs-on: ubuntu-24.04-arm |
39 | 39 | timeout-minutes: 20 # guardrails timeout for the whole job |
| 40 | + if: ${{ github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'ci/validate-only') }} |
40 | 41 | needs: |
41 | 42 | - validate-dco |
42 | 43 | strategy: |
|
70 | 71 | build-dev: |
71 | 72 | runs-on: ubuntu-24.04-arm |
72 | 73 | timeout-minutes: 120 # guardrails timeout for the whole job |
| 74 | + if: ${{ github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'ci/validate-only') }} |
73 | 75 | needs: |
74 | 76 | - validate-dco |
75 | 77 | steps: |
|
93 | 95 | test-unit: |
94 | 96 | runs-on: ubuntu-24.04-arm |
95 | 97 | timeout-minutes: 120 # guardrails timeout for the whole job |
| 98 | + if: ${{ github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'ci/validate-only') }} |
96 | 99 | needs: |
97 | 100 | - build-dev |
98 | 101 | steps: |
@@ -150,7 +153,7 @@ jobs: |
150 | 153 | runs-on: ubuntu-24.04 |
151 | 154 | timeout-minutes: 10 |
152 | 155 | continue-on-error: ${{ github.event_name != 'pull_request' }} |
153 | | - if: always() |
| 156 | + if: always() && (github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'ci/validate-only')) |
154 | 157 | needs: |
155 | 158 | - test-unit |
156 | 159 | steps: |
@@ -179,6 +182,7 @@ jobs: |
179 | 182 | runs-on: ubuntu-24.04-arm |
180 | 183 | timeout-minutes: 120 # guardrails timeout for the whole job |
181 | 184 | continue-on-error: ${{ github.event_name != 'pull_request' }} |
| 185 | + if: ${{ github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'ci/validate-only') }} |
182 | 186 | needs: |
183 | 187 | - build-dev |
184 | 188 | steps: |
@@ -249,7 +253,7 @@ jobs: |
249 | 253 | runs-on: ubuntu-24.04 |
250 | 254 | timeout-minutes: 10 |
251 | 255 | continue-on-error: ${{ github.event_name != 'pull_request' }} |
252 | | - if: always() |
| 256 | + if: always() && (github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'ci/validate-only')) |
253 | 257 | needs: |
254 | 258 | - test-integration |
255 | 259 | steps: |
|
0 commit comments