Commit f70476b
workspace: make Quarto PR preview robust (un-failable comment + correct URL on private repos)
Two latent bugs in the reusable Quarto deploy workflow made a freshly
scaffolded repo's first PR look broken (red deploy check, no/wrong preview
link) even when the site published fine:
1. The preview-comment gh api read was unguarded under set -e; a transient
5xx HTML body breaks --jq and abORTS the deploy after publish. Now the
block runs under set +e and closes on a guaranteed-success command.
2. The preview URL was hardcoded to <owner>.github.io/<repo>, dead on
private/internal repos that serve from an obfuscated *.pages.github.io
domain. Now resolved from the Pages API with fallback; deploy job and
scaffold docs.yml template grant pages: read.
Supersedes #91, #92, #93.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 0c4c089 commit f70476b
2 files changed
Lines changed: 24 additions & 3 deletions
File tree
- .github/workflows
- plugins/asta-tools/skills/workspace/assets
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
90 | 94 | | |
91 | 95 | | |
92 | 96 | | |
| |||
145 | 149 | | |
146 | 150 | | |
147 | 151 | | |
148 | | - | |
| 152 | + | |
| 153 | + | |
149 | 154 | | |
150 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
151 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
152 | 169 | | |
153 | | - | |
| 170 | + | |
154 | 171 | | |
155 | 172 | | |
156 | 173 | | |
157 | 174 | | |
158 | 175 | | |
159 | 176 | | |
160 | 177 | | |
| 178 | + | |
161 | 179 | | |
162 | 180 | | |
163 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| |||
0 commit comments