mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
99e7aec18a
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
25 lines
588 B
YAML
25 lines
588 B
YAML
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/heroku-deploy@v3.12.14
|
|
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
|