added auto refresh workflow
This commit is contained in:
parent
05121aeec9
commit
1fe5951b61
1 changed files with 19 additions and 0 deletions
19
.github/workflows/refresh.yaml
vendored
Normal file
19
.github/workflows/refresh.yaml
vendored
Normal 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 }}
|
Loading…
Reference in a new issue