Heroku Postgres Reset #347
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: Heroku Postgres Reset | |
on: | |
workflow_dispatch: | |
schedule: | |
# run every day at midnight | |
- cron: "0 0 * * *" | |
jobs: | |
reset-postgres: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Heroku CLI | |
uses: akhileshns/[email protected] | |
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 |