|
24 | 24 | pull-requests: read |
25 | 25 | outputs: |
26 | 26 | has-files-requiring-all-checks: ${{ steps.filter.outputs.has-files-requiring-all-checks }} |
| 27 | + has_companion: ${{ steps.filter.outputs.has_companion }} |
27 | 28 | commit-sha: ${{ steps.get_sha.outputs.commit-sha }} |
28 | 29 | steps: |
29 | 30 | - uses: actions/checkout@v4 |
|
33 | 34 | with: |
34 | 35 | filters: | |
35 | 36 | has-files-requiring-all-checks: |
36 | | - - "!(**.md|**.mdx|.github/CODEOWNERS|docs/**|help/**|apps/web/public/static/locales/**/common.json|i18n.lock)" |
| 37 | + - "!(companion/**|**.md|**.mdx|.github/CODEOWNERS|docs/**|help/**|apps/web/public/static/locales/**/common.json|i18n.lock)" |
| 38 | + has_companion: |
| 39 | + - "companion/**" |
37 | 40 | - name: Get Latest Commit SHA |
38 | 41 | id: get_sha |
39 | 42 | run: | |
@@ -148,8 +151,8 @@ jobs: |
148 | 151 |
|
149 | 152 | build-companion: |
150 | 153 | name: Companion builds |
151 | | - needs: [changes, check-label, deps] |
152 | | - if: ${{ needs.check-label.outputs.run-e2e == 'true' && needs.changes.outputs.has-files-requiring-all-checks == 'true' }} |
| 154 | + needs: [changes, check-label] |
| 155 | + if: needs.changes.outputs.has_companion == 'true' |
153 | 156 | uses: ./.github/workflows/companion-build.yml |
154 | 157 | secrets: inherit |
155 | 158 |
|
@@ -256,11 +259,23 @@ jobs: |
256 | 259 | e2e-api-v2, |
257 | 260 | e2e-embed, |
258 | 261 | e2e-embed-react, |
259 | | - e2e-app-store |
| 262 | + e2e-app-store, |
260 | 263 | ] |
261 | 264 | if: always() |
262 | 265 | runs-on: buildjet-2vcpu-ubuntu-2204 |
263 | 266 | steps: |
264 | 267 | - name: fail if conditional jobs failed |
265 | | - if: needs.changes.outputs.has-files-requiring-all-checks == 'true' && (contains(needs.*.result, 'failure') || contains(needs.*.result, 'skipped') || contains(needs.*.result, 'cancelled')) |
266 | 268 | run: exit 1 |
| 269 | + if: | |
| 270 | + ( |
| 271 | + needs.changes.outputs.has-files-requiring-all-checks == 'true' && |
| 272 | + ( |
| 273 | + contains(needs.*.result, 'failure') || |
| 274 | + contains(needs.*.result, 'cancelled') || |
| 275 | + contains(needs.*.result, 'skipped') |
| 276 | + ) |
| 277 | + ) || |
| 278 | + ( |
| 279 | + needs.changes.outputs.has_companion == 'true' && |
| 280 | + needs.build-companion.result != 'success' |
| 281 | + ) |
0 commit comments