@@ -373,6 +373,8 @@ jobs:
373
373
needs.setup.outputs.RUN_MACOS_KOTLIN_BUILD == 'true' &&
374
374
!contains(needs.*.result, 'cancelled') &&
375
375
!contains(needs.*.result, 'failure')
376
+ outputs :
377
+ success : ${{ steps.setoutput.outputs.success }}
376
378
steps :
377
379
- uses : actions/checkout@v4
378
380
@@ -391,6 +393,10 @@ jobs:
391
393
392
394
- run : yarn cli build clients kotlin
393
395
396
+ - name : Set output
397
+ id : setoutput
398
+ run : echo "success=true" >> "$GITHUB_OUTPUT"
399
+
394
400
swift_cts_macos :
395
401
timeout-minutes : 20
396
402
runs-on : macos-latest
@@ -408,6 +414,8 @@ jobs:
408
414
ALGOLIA_APPLICATION_ID : ${{ secrets.ALGOLIA_APPLICATION_ID }}
409
415
ALGOLIA_ADMIN_KEY : ${{ secrets.ALGOLIA_ADMIN_KEY }}
410
416
MONITORING_API_KEY : ${{ secrets.MONITORING_API_KEY }}
417
+ outputs :
418
+ success : ${{ steps.setoutput.outputs.success }}
411
419
steps :
412
420
- uses : actions/checkout@v4
413
421
@@ -426,6 +434,10 @@ jobs:
426
434
427
435
- run : yarn cli cts run swift ${{ fromJSON(needs.setup.outputs.SWIFT_DATA).toRun }}
428
436
437
+ - name : Set output
438
+ id : setoutput
439
+ run : echo "success=true" >> "$GITHUB_OUTPUT"
440
+
429
441
codegen :
430
442
runs-on : ubuntu-22.04
431
443
timeout-minutes : 15
@@ -463,27 +475,6 @@ jobs:
463
475
- name : Generate documentation specs with code snippets
464
476
run : yarn cli build specs ${{ fromJSON(needs.setup.outputs.SPECS_MATRIX).toRun }} --docs
465
477
466
- - name : Build website
467
- if : ${{ github.ref == 'refs/heads/main' || github.base_ref == 'main' }}
468
- run : yarn website:build
469
-
470
- - name : Deploy documentation
471
- if : ${{ github.ref == 'refs/heads/main' || github.base_ref == 'main' }}
472
-
473
- with :
474
- publish-dir : ' website/build'
475
- production-branch : main
476
- github-token : ${{ secrets.GITHUB_TOKEN }}
477
- deploy-message : ' Deploy from GitHub Actions'
478
- enable-pull-request-comment : true
479
- enable-commit-comment : true
480
- overwrites-pull-request-comment : true
481
- netlify-config-path : ./netlify.toml
482
- env :
483
- NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }}
484
- NETLIFY_SITE_ID : ${{ secrets.NETLIFY_SITE_ID }}
485
- timeout-minutes : 5
486
-
487
478
- name : Push generated code
488
479
id : pushGeneratedCode
489
480
run : yarn workspace scripts pushGeneratedCode
@@ -514,6 +505,27 @@ jobs:
514
505
| 🪓 Triggered by | [`${{ github.sha }}`](${{ github.event.pull_request.base.repo.html_url }}/commit/${{ github.sha }}) |
515
506
| 🍃 Generated commit | [`${{ steps.pushGeneratedCode.outputs.GENERATED_COMMIT }}`](${{ github.event.pull_request.base.repo.html_url }}/commit/${{ steps.pushGeneratedCode.outputs.GENERATED_COMMIT }}) |
516
507
| 🌲 Generated branch | [`generated/${{ github.head_ref }}`](${{ github.event.pull_request.base.repo.html_url }}/tree/generated/${{ github.head_ref }}) |
508
+
509
+ - name : Build website
510
+ if : ${{ github.ref == 'refs/heads/main' || github.base_ref == 'main' }}
511
+ run : yarn website:build
512
+
513
+ - name : Deploy documentation
514
+ if : ${{ github.ref == 'refs/heads/main' || github.base_ref == 'main' }}
515
+
516
+ with :
517
+ publish-dir : ' website/build'
518
+ production-branch : main
519
+ github-token : ${{ secrets.GITHUB_TOKEN }}
520
+ deploy-message : ' Deploy from GitHub Actions'
521
+ enable-pull-request-comment : true
522
+ enable-commit-comment : true
523
+ overwrites-pull-request-comment : true
524
+ netlify-config-path : ./netlify.toml
525
+ env :
526
+ NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }}
527
+ NETLIFY_SITE_ID : ${{ secrets.NETLIFY_SITE_ID }}
528
+ timeout-minutes : 5
517
529
518
530
- name : Set output
519
531
id : setoutput
0 commit comments