jackyzha0 / quartz

🌱 a fast, batteries-included static-site generator that transforms Markdown content into fully functional websites
https://quartz.jzhao.xyz
MIT License
5.93k stars 2.37k forks source link

Permit Manual (and Scripted) Trigger of CI Job #1251

Closed smissingham closed 1 week ago

smissingham commented 1 week ago

Adding this stamp allows two things.

First, it enables this button so that a user can manually trigger their build/test CI script. image

Second, more importantly, allows other CI scripts in the repo to trigger this workflow.

Use case, I want a CI job that procedurally checks the status of a google drive folder and commits any changes to my quartz /content directory. After that sync job runs, I want the site to rebuild and publish.

This requires the workflow_dispatch be enabled for the job that needs to be triggered.

Docs: https://docs.github.com/en/webhooks/webhook-events-and-payloads#workflow_dispatch

Example use: https://github.com/smissingham/blog/blob/15537d51a389b37df1347c9fe7b473b184b388f6/.github/workflows/drive-sync.yml#L66