Skip to content

fix(ci): make devtools dispatch best-effort in publish-openapi-spec#293

Merged
vredchenko merged 1 commit into
mainfrom
fix/openapi-dispatch-nonfatal
Jun 2, 2026
Merged

fix(ci): make devtools dispatch best-effort in publish-openapi-spec#293
vredchenko merged 1 commit into
mainfrom
fix/openapi-dispatch-nonfatal

Conversation

@vredchenko

Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #292. The first post-merge Publish OpenAPI spec run committed the canonical spec correctly but then failed on the Notify smartem-devtools step: the DEVTOOLS_DISPATCH_TOKEN is present but pending org approval, so gh api .../dispatches returns 403.

The notification is a best-effort nudge — the spec commit is the critical output, and smartem-devtools also syncs on a daily schedule and via manual workflow_dispatch. A failed dispatch should therefore warn, not fail the workflow. The previous guard only handled an absent token, not a present-but-unauthorised one.

No functional change once the token is approved; this just stops a transient/pending-token state from reding main.

A present-but-unauthorised DEVTOOLS_DISPATCH_TOKEN (e.g. a fine-grained PAT
pending org approval) made the dispatch step 403 and failed the whole publish
run, even though the canonical spec commit - the critical output - succeeded.
The notification is best-effort (devtools also syncs on schedule and manually),
so a failed dispatch now warns instead of failing the workflow.
@vredchenko vredchenko merged commit bf371f6 into main Jun 2, 2026
11 checks passed
@vredchenko vredchenko deleted the fix/openapi-dispatch-nonfatal branch June 2, 2026 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant