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
Make the inbox workflow validation-only: remove promotion/commit steps and INBOX_PROMOTE_STRATEGY, tighten checks and messages, and avoid writing back to PR branches (checkout no longer persists credentials). Improve Python/JS formatting and capture of round-trip output. Add a new update_excel workflow that runs on pushes to main to regenerate docs/assets/coremeta4cat_vocabulary.xlsx from the schema and commit it (with contents: write permission). This separates validation (safe for forks/PRs) from the single authoritative post-merge update that writes the generated workbook.
const body = `## ${icon} ${title}\n\n<details><summary>Full diff output</summary>\n\n\`\`\`\n${output}\n\`\`\`\n</details>\n\n${
175
-
status === "ok"
176
-
? "The workbook is aligned with the schema. The file will be promoted to `docs/assets/` automatically."
177
-
: "Differences were found between the inbox workbook and the schema. Please review the output above and either update the workbook or open a schema issue."
178
-
}`;
154
+
const advice = status === "ok"
155
+
? "The workbook is aligned with the schema. Once this PR is merged, `docs/assets/coremeta4cat_vocabulary.xlsx` will be regenerated automatically from the schema."
156
+
: "Differences were found between the inbox workbook and the schema.\n\nIf your changes require additions to the schema, please update the YAML source files and include those changes in this PR. The workbook is derived output — the schema is the ground truth.";
157
+
158
+
const body = [
159
+
`## ${icon} ${title}`,
160
+
"",
161
+
"<details><summary>Full diff output</summary>",
162
+
"",
163
+
"```",
164
+
output,
165
+
"```",
166
+
"</details>",
167
+
"",
168
+
advice,
169
+
].join("\n");
179
170
180
171
await github.rest.issues.createComment({
181
172
owner: context.repo.owner,
@@ -189,41 +180,5 @@ jobs:
189
180
steps.inbox_check.outputs.present == 'true' &&
190
181
steps.roundtrip.outputs.status != 'ok'
191
182
run: |
192
-
echo "::error::Round-trip validation failed. See PR comment for details."
183
+
echo "::error::Round-trip validation failed. See the PR comment for details."
193
184
exit 1
194
-
195
-
# ── Promotion step: move or regenerate ───────────────────────────────
0 commit comments