Created
January 5, 2021 22:19
-
-
Save mauricioklein/a361b505d5c9b350f03ce8c7cb9d0f89 to your computer and use it in GitHub Desktop.
This file contains hidden or 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: Daily Build | |
on: | |
# Trigger build manually | |
workflow_dispatch: | |
# Runs every day at 3pm GMT | |
schedule: | |
- cron: '0 15 * * *' | |
jobs: | |
trigger-pages-build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Trigger GitHub pages rebuild | |
run: | | |
curl --fail --request POST \ | |
--url https://api.github.com/repos/${{ github.repository }}/pages/builds \ | |
--header "Authorization: Bearer $TOKEN" | |
env: | |
TOKEN: ${{ secrets.BUILD_TOKEN }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment