Skip to content

Extend review date in Terraform file/s for angelanec #1902

Extend review date in Terraform file/s for angelanec

Extend review date in Terraform file/s for angelanec #1902

name: Targeted terraform plan
on:
workflow_dispatch:
pull_request:
types: [opened, edited, reopened, synchronize]
paths: "terraform/**"
env:
TERRAFORM: terraform
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
TF_VAR_github_token: ${{ secrets.MOJ_COLLABORATORS_GENERAL_ADMIN_BOT_PAT }}
TF_IN_AUTOMATION: true
jobs:
terraform-plan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.3.4
- run: scripts/validate-commit-files.sh
- run: scripts/targeted-plan.sh
- name: Report failure to Slack
if: always()
uses: ravsamhq/notify-slack-action@v2
with:
status: ${{ job.status }}
notify_when: "failure"
notification_title: "Failed GitHub Action Run"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}