added auto refresh workflow

This commit is contained in:
alterNERDtive 2022-07-13 01:31:36 +02:00
parent 05121aeec9
commit 1fe5951b61
No known key found for this signature in database
GPG key ID: 4B99E14C331D81B9

19
.github/workflows/refresh.yaml vendored Normal file
View file

@ -0,0 +1,19 @@
name: Refresh
on:
schedule:
- cron: '0 3 * * *' # Runs every day at 3am
jobs:
refresh:
runs-on: ubuntu-latest
steps:
- name: Trigger GitHub pages rebuild
run: |
curl --fail --request POST \
--url https://api.github.com/repos/${{ github.repository }}/pages/builds \
--header "Authorization: Bearer $USER_TOKEN"
env:
# You must create a personal token with repo access as GitHub does
# not yet support server-to-server page builds.
USER_TOKEN: ${{ secrets.USER_TOKEN }}