Skip to content

Commit 914f63f

Browse files
committed
Cleanup ci.yml of pr related code
It's been a long time since this workflow triggers have been updated to not run on "pull_request" triggers.
1 parent b96486d commit 914f63f

File tree

1 file changed

+1
-33
lines changed

1 file changed

+1
-33
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ on:
1010

1111
jobs:
1212
build:
13-
if: github.event.pull_request.draft == false
1413
strategy:
1514
fail-fast: false
1615
matrix:
@@ -284,7 +283,7 @@ jobs:
284283
if-no-files-found: error
285284

286285
publish-tests-results:
287-
if: github.event.pull_request.draft == false && ${{ success() || failure() }}
286+
if: ${{ success() || failure() }}
288287
runs-on: ubuntu-22.04
289288
needs:
290289
- test
@@ -479,7 +478,6 @@ jobs:
479478
working-directory: mithril-infra
480479

481480
steps:
482-
483481
- name: Checkout sources
484482
uses: actions/checkout@v3
485483

@@ -502,36 +500,6 @@ jobs:
502500
run: |
503501
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 }}'
504502
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-
535503
- name: Terraform Apply
536504
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
537505
run: |

0 commit comments

Comments
 (0)