Skip to content

Commit

Permalink
Update reset_heroku.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew committed Mar 29, 2023
1 parent c5d57a5 commit a6bc33c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/reset_heroku.yml
Expand Up @@ -2,6 +2,9 @@ name: Heroku Postgres Reset

on:
workflow_dispatch:
schedule:
# run every day at midnight
- cron: "0 0 * * *"

jobs:
reset-postgres:
Expand All @@ -15,7 +18,7 @@ jobs:
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_email: ${{ secrets.HEROKU_EMAIL }}

justlogin: true
- name: Reset Postgres
run: |
heroku pg:reset DATABASE --app unleash --confirm unleash

0 comments on commit a6bc33c

Please sign in to comment.