Refresh #8049
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
name: Refresh | |
on: | |
schedule: | |
- cron: '30 */4 * * *' # every 4 hrs at minute 30 | |
workflow_dispatch: | |
jobs: | |
refresh: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Trigger GitHub Pages rebuild | |
# https://docs.github.com/en/rest/reference/repos#request-a-github-pages-build | |
# requires Personal Access Token (PAT) since GITHUB_TOKEN has no permission to trigger page builds | |
run: | | |
curl \ | |
--fail \ | |
--header "Accept: application/vnd.github.v3+json" \ | |
--header "Authorization: Bearer ${{ secrets.GH_WORKFLOW }}" \ | |
--request POST \ | |
--url https://api.github.com/repos/${{ github.repository }}/pages/builds |