You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,12 +35,24 @@ Note that technically, <prerelease.quarto.org> is also a deploy preview on Netli
35
35
- This index file is retrieved on deployed website to be updated on Algolia.
36
36
- Both `quarto.org` and `prerelease.quarto.org` indexes are updated in the same run - they each use one specific algolia index
37
37
38
+
-`draft-check.yml` - A lightweight workflow that detects `draft: true` pages among changed `.qmd` files. Runs on all PRs to `main` and `prerelease` with no `paths-ignore`, so it always creates a status check.
39
+
- Uses the reusable composite action at `.github/workflows/actions/detect-drafts/`.
40
+
- Configured as a required status check on `main` (`check-drafts` job), blocking merge until `draft: true` is removed.
41
+
- Admin override is available for intentional draft merges.
42
+
38
43
-`port-to-prerelease.yml` - This workflow is used to sync changes made to main for quarto.org to prerelease branch for prerelease.quarto.org.
39
44
- It is triggered when a PR is merged in to `main`. It can also be triggered manually by adding a comment `/sync-prerelease` on a merged PR.
40
45
- This workflow uses [`korthout/backport-action`](https://github.com/korthout/backport-action) to create a PR with the changes merged into `main` branch to be synced to `prerelease` branch.
41
46
- It will also write a new `/deploy-preview` comment in the new PR to trigger the preview deployment from `preview.yml`.
42
47
- This is possible because it uses a fine-grained PAT token which allows a workflow to trigger another using usual event (GITHUB_TOKEN does not allow that usually). This is configured in repo secrets.
43
48
49
+
## Reusable Composite Actions
50
+
51
+
Local composite actions live in `.github/workflows/actions/`:
52
+
53
+
-`detect-drafts/` - Scans changed `.qmd` files for `draft: true` in YAML frontmatter. Outputs `found` (true/false) and `files` (newline-separated paths). Used by both `preview.yml` (to tag drafts in the PR comment) and `draft-check.yml` (to fail the required check).
54
+
-`release-info/` - Retrieves release information from the quarto-cli repository.
55
+
44
56
## Netlify Configurations
45
57
46
58
- This repo has a `_redirects` file in the root directory. Otherwise, configuration are made in NETLIFY UI. Quarto website is inside Posit Netlify account.
0 commit comments