Created
October 23, 2023 14:00
-
-
Save trasparente/9725b554153de09a6aee7021817ac476 to your computer and use it in GitHub Desktop.
GitHub Action to rebuild Jekyll site on gh-pages after midnight
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: 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 }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Settrings > Actions > General > Workflow permissions > Read and write permissions