[PRM-717] Disable report generation in dev, and enable the email trig… #209
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Z-AUTOMATED: Email and Alerting Terraform Plan/Apply" | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "stacks/email_and_alerting/**" | |
| - "stacks/gp2gp_dashboard/**" | |
| - ".github/workflows/automated-email-and-alerting-terraform.yml" | |
| - ".github/workflows/deploy-stack.yml" | |
| - "lambdas/email_report/**" | |
| - "lambdas/gp2gp_dashboard_alert/**" | |
| - "lambdas/log_alerts_pipeline_error/**" | |
| - "lambdas/log_alerts_technical_failures_above_threshold/**" | |
| - "lambdas/store_asid_lookup/**" | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - "stacks/email_and_alerting/**" | |
| - "stacks/gp2gp_dashboard/**" | |
| - ".github/workflows/automated-email-and-alerting-terraform.yml" | |
| - ".github/workflows/deploy-stack.yml" | |
| permissions: | |
| pull-requests: write | |
| id-token: write # This is required for requesting the JWT | |
| contents: read # This is required for actions/checkout | |
| jobs: | |
| email-and-alerting: | |
| uses: ./.github/workflows/deploy-stack.yml | |
| with: | |
| environment: dev | |
| is_deployment: ${{ github.ref == 'refs/heads/main' }} | |
| terraform_stack: email_and_alerting | |
| build_lambda: true | |
| git_ref: ${{ github.ref }} | |
| hyphenated_alias: email-and-alerting | |
| secrets: inherit | |
| gp2gp-dashboard: | |
| needs: email-and-alerting | |
| uses: ./.github/workflows/deploy-stack.yml | |
| with: | |
| environment: dev | |
| is_deployment: ${{ github.ref == 'refs/heads/main' }} | |
| terraform_stack: gp2gp_dashboard | |
| build_lambda: false | |
| has_image: true | |
| git_ref: ${{ github.ref }} | |
| hyphenated_alias: gp2gp-dashboard | |
| secrets: inherit |