From 7c75036220e5a60084e195bfb7c4ca9cfc17bb29 Mon Sep 17 00:00:00 2001 From: "Christopher C. Wells" Date: Sun, 22 May 2022 15:41:06 -0700 Subject: [PATCH] Add a demo reset workflow --- .github/workflows/demo-reset.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/demo-reset.yml diff --git a/.github/workflows/demo-reset.yml b/.github/workflows/demo-reset.yml new file mode 100644 index 00000000..9a8548d6 --- /dev/null +++ b/.github/workflows/demo-reset.yml @@ -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