Skip to content

Instantly share code, notes, and snippets.

@trasparente
Created October 23, 2023 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trasparente/9725b554153de09a6aee7021817ac476 to your computer and use it in GitHub Desktop.
Save trasparente/9725b554153de09a6aee7021817ac476 to your computer and use it in GitHub Desktop.
GitHub Action to rebuild Jekyll site on gh-pages after midnight
name: Request pages build with GitHub CLI
on:
schedule:
- cron: 0 0 * * *
jobs:
build_pages:
runs-on: ubuntu-latest
steps:
- run: gh api -X POST repos/${{ github.repository }}/pages/builds
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@trasparente
Copy link
Author

Settrings > Actions > General > Workflow permissions > Read and write permissions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment