feat(ci): add opt-in gist-backed status badges - #3
Merged
Conversation
GitHub's native badge.svg reports per workflow file, not per matrix entry, and doesn't render for anonymous viewers of a private repo's README. Add an opt-in badge_gist_id input (plus GIST_TOKEN secret) that publishes each distro's pass/fail to a gist via schneegans/dynamic-badges-action, so consumers can render per-distro badges via shields.io's endpoint renderer regardless of repo visibility. Badges are only written on pushes to main, matching the old ?branch=main semantics; disabled by default (empty gist ID).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
badge.svgreports at the workflow-file level and won't render for anonymous viewers of a private repo's README, so per-distro badges for private consumer repos (e.g.duatic_skills) currently can't work.badge_gist_idinput (+GIST_TOKENsecret) toreusable_ici.yml, threaded throughci_orchestrator.yml, that publishes each distro's pass/fail to a gist viaschneegans/dynamic-badges-action. Consumers then point shields.io'sendpointrenderer at the gist file.main(matches old?branch=mainsemantics), so PR runs never flip a README badge.Test plan
pre-commit run --files .github/workflows/reusable_ici.yml .github/workflows/ci_orchestrator.yml README.mdpasses (includes actionlint)duatic_skillswithbadge_gist_idset: confirm the "Publish status badge" step runs on amainpush and writes<repo>-<distro>.jsonto the gist, and is skipped on PR runs