Skip to content

Instantly share code, notes, and snippets.

@mauricioklein
Created January 5, 2021 22:19
Show Gist options
  • Save mauricioklein/a361b505d5c9b350f03ce8c7cb9d0f89 to your computer and use it in GitHub Desktop.
Save mauricioklein/a361b505d5c9b350f03ce8c7cb9d0f89 to your computer and use it in GitHub Desktop.
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