mongodb / terraform-provider-mongodbatlas

Terraform MongoDB Atlas Provider: Deploy, update, and manage MongoDB Atlas infrastructure as code through HashiCorp Terraform
https://registry.terraform.io/providers/mongodb/mongodbatlas
Mozilla Public License 2.0
230 stars 167 forks source link

chore: Send Slack runs on schedule or if `inputs.send_notification` is `true` #2342

Closed oarbusi closed 2 weeks ago

oarbusi commented 2 weeks ago

Description

Send Slack runs on schedule or if inputs.send_notification is true when the test result is failure

the job always runs on schedule and when triggered manually or called by another job it only runs if inputs.send_notification is checked. That's because:

Link to any related issue(s):

Type of change:

Required Checklist:

Further comments

lantoli commented 2 weeks ago

actionlint is failing:

84 if: ${{ !cancelled() && needs.tests.result == 'failure' && !contains(inputs.send_notification, 'false') }} ^~~~~~~~~ .github/workflows/test-suite.yml:84:74: 1st argument of function call is not assignable. "bool" cannot be assigned to "array". called function type is "contains(array, any) -> bool" [expression]
84 if: ${{ !cancelled() && needs.tests.result == 'failure' && !contains(inputs.send_notification, 'false') }}