Purge AWS RDS DBInstance snapshots #145
This file contains 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: Purge AWS RDS DBInstance snapshots | |
on: | |
schedule: | |
# Runs at 00:30 and 12:30 | |
- cron: "30 0,12 * * *" | |
jobs: | |
purge_rds_snapshots: | |
name: Purge AWS RDS DBInstance snapshots | |
runs-on: [ubuntu-latest] | |
steps: | |
- name: Purge AWS RDS DBInstance snapshots | |
run: | | |
./.github/scripts/purge-aws-rds-snapshots.sh | |
- name: Create GitHub issue on failure | |
if: ${{ failure() }} | |
run: | | |
gh issue create --title "Purge AWS RDS DBInstance snapshots workflow failed" \ | |
--body "Test failed on ${{ github.repository }}. See [workflow logs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for more details." \ | |
--repo ${{ github.repository }} |