10
10
11
11
jobs :
12
12
build :
13
- if : github.event.pull_request.draft == false
14
13
strategy :
15
14
fail-fast : false
16
15
matrix :
@@ -284,7 +283,7 @@ jobs:
284
283
if-no-files-found : error
285
284
286
285
publish-tests-results :
287
- if : github.event.pull_request.draft == false && ${{ success() || failure() }}
286
+ if : ${{ success() || failure() }}
288
287
runs-on : ubuntu-22.04
289
288
needs :
290
289
- test
@@ -479,7 +478,6 @@ jobs:
479
478
working-directory : mithril-infra
480
479
481
480
steps :
482
-
483
481
- name : Checkout sources
484
482
uses : actions/checkout@v3
485
483
@@ -502,36 +500,6 @@ jobs:
502
500
run : |
503
501
terraform plan -var "image_id=${{ env.BRANCH_NAME }}-${{ steps.slug.outputs.sha8 }}" -var 'private_key=${{ env.GCLOUD_PRIVATE_KEY }}' -var 'google_application_credentials_json=${{ env.GOOGLE_CREDENTIALS }}' -var 'genesis_secret_key=${{ env.GENESIS_SECRET_KEY }}'
504
502
505
- - name : Update Pull Request
506
- uses : actions/github-script@v6
507
- if : github.event_name == 'pull_request'
508
- env :
509
- PLAN : " terraform\n ${{ steps.plan.outputs.stdout }}"
510
- with :
511
- github-token : ${{ secrets.GITHUB_TOKEN }}
512
- script : |
513
- const output = `#### Terraform Format and Style 🖌\`${{ steps.fmt.outcome }}\`
514
- #### Terraform Initialization ⚙️\`${{ steps.init.outcome }}\`
515
- #### Terraform Plan 📖\`${{ steps.plan.outcome }}\`
516
- #### Terraform Validation 🤖\`${{ steps.validate.outcome }}\`
517
-
518
- <details><summary>Show Plan</summary>
519
-
520
- \`\`\`\n
521
- ${process.env.PLAN}
522
- \`\`\`
523
-
524
- </details>
525
-
526
- *Pusher: @${{ github.actor }}, Action: \`${{ github.event_name }}\`*`;
527
-
528
- github.rest.issues.createComment({
529
- issue_number: context.issue.number,
530
- owner: context.repo.owner,
531
- repo: context.repo.repo,
532
- body: output
533
- })
534
-
535
503
- name : Terraform Apply
536
504
if : github.ref == 'refs/heads/main' && github.event_name == 'push'
537
505
run : |
0 commit comments