Rebuild #163
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# File: .github/workflows/rebuild.yml | |
name: Rebuild | |
on: | |
schedule: | |
- cron: '0 1 2-30/3 * *' # Runs every three days at 1am | |
jobs: | |
refresh: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Call GitHub pages build endpoint | |
run: | | |
curl --fail --request POST \ | |
--url https://api.github.com/repos/${{ github.repository }}/pages/builds \ | |
--header "Authorization: Bearer $PAGES_ACCESS_TOKEN" | |
env: | |
# Create a token at https://github.com/settings/tokens | |
# since you cannot trigger a new build with the regular token. | |
PAGES_ACCESS_TOKEN: ${{ secrets.PAGES_ACCESS_TOKEN }} |