1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/.github/workflows/reset_heroku.yml

25 lines
588 B
YAML
Raw Normal View History

2023-03-29 14:51:45 +02:00
name: Heroku Postgres Reset
on:
workflow_dispatch:
2023-03-29 15:11:53 +02:00
schedule:
# run every day at midnight
- cron: "0 0 * * *"
2023-03-29 14:51:45 +02:00
jobs:
reset-postgres:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Heroku CLI
chore(deps): update akhileshns/heroku-deploy action to v3.12.13 (#3424) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [akhileshns/heroku-deploy](https://togithub.com/akhileshns/heroku-deploy) | action | patch | `v3.12.12` -> `v3.12.13` | --- ### Release Notes <details> <summary>akhileshns/heroku-deploy</summary> ### [`v3.12.13`](https://togithub.com/AkhileshNS/heroku-deploy/releases/tag/v3.12.13) [Compare Source](https://togithub.com/akhileshns/heroku-deploy/compare/v3.12.12...v3.12.13) Switched to node 16 due to deprecation of node 12 (Thank you to [@&#8203;brtrick](https://togithub.com/brtrick) for PR) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/Unleash/unleash). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4yMi4xIiwidXBkYXRlZEluVmVyIjoiMzUuMjIuMSJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-30 03:13:21 +02:00
uses: akhileshns/heroku-deploy@v3.12.13
2023-03-29 14:51:45 +02:00
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
2023-03-29 14:55:40 +02:00
heroku_email: ${{ secrets.HEROKU_EMAIL }}
2023-03-29 15:11:53 +02:00
justlogin: true
2023-03-29 14:51:45 +02:00
- name: Reset Postgres
run: |
heroku pg:reset DATABASE --app unleash --confirm unleash