Add a demo reset workflow

This commit is contained in:
Christopher C. Wells 2022-05-22 15:41:06 -07:00 committed by Christopher Charbonneau Wells
parent 4d8466be99
commit 7c75036220
1 changed files with 16 additions and 0 deletions

16
.github/workflows/demo-reset.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: Demo reset
on:
schedule:
- cron: "0 * * * *"
jobs:
reset:
name: Reset
runs-on: ubuntu-latest
steps:
- name: Reset demo database
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.RENDER_COM_DEMO_HOST }}
username: ${{ secrets.RENDER_COM_DEMO_USER }}
key: ${{ secrets.RENDER_COM_DEMO_KEY }}
script: python manage.py reset --no-input