Skip to content

Run scheduled destroy job #36

Run scheduled destroy job

Run scheduled destroy job #36

name: "Run scheduled destroy job"
on:
schedule:
- cron: '0 19 * * 1-5' # Every weekday at 19:00
jobs:
destroy:
name: Destroy Development Terraform
uses: ukhsa-collaboration/devops-github-reusable-workflows/.github/workflows/[email protected]
permissions:
packages: read
contents: read
security-events: write
statuses: write
checks: write
id-token: write
with:
environment_name: dev
execute_terraform_plan: true
secrets:
AWS_ACCOUNT_ID: "${{ secrets.AWS_ACCOUNT_ID }}"
AWS_ROLE_NAME: "${{ secrets.AWS_ROLE_NAME }}"
TF_MODULES_SSH_DEPLOY_KEY: "${{ secrets.TF_MODULES_SSH_DEPLOY_KEY }}"
TF_PLAN_ENCRYPTION_PASSPHRASE: "${{ secrets.TF_PLAN_ENCRYPTION_PASSPHRASE }}"