Repository navigation
Commit cd81a65
committed
feat(hack): generate docs from a pre-tag ref and fail loudly on fetch errors
update-all could only fetch content from a ref named exactly like
RELEASE_TAG (the Makefile overrides BRANCH with it), which forces docs
generation to wait until the final tag exists. The new FETCH_REF
variable (default: BRANCH, so every existing invocation is
byte-identical) lets the release flow point content fetching at a
staging branch, rc tag, or SHA while version routing still keys on
RELEASE_TAG — enabling the docs PR to be prepared at promote time,
before the stable tag is cut.
update_apps.sh also rewrote destination docs before fetching and
swallowed curl failures, so a bad ref or a raw.githubusercontent hiccup
silently produced stub docs that could be committed and merged. Fetch
now goes to a temp file first with curl --retry 3; any fetch failure or
empty body aborts non-zero with the app and URL named, leaving existing
docs byte-identical. A trap covers temp cleanup on the non-fetch error
paths.
Note the intended strictness: update-all against an older tag whose
tree lacks a currently-listed app now fails the job instead of
committing a stub for it.
Assisted-By: GPT-5 <[email protected]>
Assisted-By: Claude <[email protected]>
Signed-off-by: Myasnikov Daniil <[email protected]>1 parent c9bb53d commit cd81a65
2 files changed
Lines changed: 38 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
26 | 31 | | |
27 | 32 | | |
28 | 33 | | |
| |||
84 | 89 | | |
85 | 90 | | |
86 | 91 | | |
87 | | - | |
| 92 | + | |
88 | 93 | | |
89 | 94 | | |
90 | | - | |
| 95 | + | |
91 | 96 | | |
92 | 97 | | |
93 | | - | |
| 98 | + | |
94 | 99 | | |
95 | 100 | | |
96 | | - | |
| 101 | + | |
97 | 102 | | |
98 | 103 | | |
99 | | - | |
| 104 | + | |
100 | 105 | | |
101 | 106 | | |
102 | 107 | | |
| |||
139 | 144 | | |
140 | 145 | | |
141 | 146 | | |
| 147 | + | |
142 | 148 | | |
143 | 149 | | |
144 | 150 | | |
| |||
162 | 168 | | |
163 | 169 | | |
164 | 170 | | |
165 | | - | |
| 171 | + | |
166 | 172 | | |
167 | 173 | | |
168 | 174 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
86 | 90 | | |
87 | 91 | | |
88 | 92 | | |
| |||
97 | 101 | | |
98 | 102 | | |
99 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
100 | 122 | | |
101 | 123 | | |
102 | 124 | | |
| |||
114 | 136 | | |
115 | 137 | | |
116 | 138 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
127 | 142 | | |
128 | | - | |
| 143 | + | |
0 commit comments