Run Deletion Policy on a CRON Schedule #88
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: Run Deletion Policy on a CRON Schedule | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
run_deletion_policy: | |
runs-on: ubuntu-latest | |
name: A job to run the deletion policy | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Run Deletion Policy Action Step | |
uses: ./deletion-policy # Uses an action in the deletion-policy directory | |
id: deletion-policy | |
env: | |
DATABASE_URL: ${{ secrets.DATABASE_URL }} | |
keepalive-job: | |
name: Keepalive Workflow | |
runs-on: ubuntu-latest | |
permissions: | |
actions: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: gautamkrishnar/[email protected] |