Skip to content

[Scheduled] Restore and Anonymise Preproduction #95

[Scheduled] Restore and Anonymise Preproduction

[Scheduled] Restore and Anonymise Preproduction #95

name: "[Scheduled] Restore and Anonymise Preproduction"
on:
schedule:
# 6.30pm every week day (Mon-Fri)
- cron: "30 18 * * 0-5"
permissions:
id-token: write
contents: read
security-events: none
pull-requests: none
actions: none
checks: none
deployments: none
issues: none
packages: none
repository-projects: none
statuses: none
jobs:
# backup_production:
# name: backup production
# uses: ./.github/workflows/_run-task.yml
# with:
# workspace: production02
# account_name: production
# task_name: "backup"
# timeout: "700"
# secrets: inherit
# restore_to_preproduction:
# name: restore to preproduction
# uses: ./.github/workflows/_run-task.yml
# needs:
# - backup_production
# with:
# workspace: preproduction
# account_name: preproduction
# task_name: "restore_from_production"
# timeout: "3600"
# secrets: inherit
slack_notify_failure:
name: notify of failure
uses: ./.github/workflows/_slack-notification.yml
if: ${{ failure() }}
# needs:
# - backup_production
with:
success: no
branch: main
account: 454262938596
scheduled_task: "Restore and Anonymise Preproduction"
secrets: inherit