diff --git a/.github/workflows/refresh.yaml b/.github/workflows/refresh.yaml new file mode 100644 index 0000000..d825a37 --- /dev/null +++ b/.github/workflows/refresh.yaml @@ -0,0 +1,13 @@ +name: refresh +on: + schedule: + - cron: '0 */2 * * *' + workflow_dispatch: +jobs: + cron: + runs-on: ubuntu-latest + environment: production + steps: + - name: Refresh the site prerender with the latest API data + run: | + curl -X POST '${{ secrets.DEPLOY_HOOK }}'