This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
Refresh Static Content #922
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/refresh.yml | |
name: Refresh Static Content | |
on: | |
schedule: | |
- cron: '0 8 * * *' # Runs every day at 8am | |
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 $DEPLOY_TOKEN" | |
env: | |
DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }} |