catalog: add publish-plan-task.yml (single-source release-gate decision) - #274
Merged
Conversation
The canonical reusable task that computes the release-gate decision once (publish? stable?) from the triggering event/actor/branch, so every publish-release.yml job gates on its outputs instead of duplicating the event/actor/branch test. A human PR merge never auto-publishes; only a bot code-merge to main, a dispatch of main/develop, or the Docker schedule do. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ch serves Docker) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new canonical reusable workflow snippet to centralize the publish/release gating decision so downstream publish-release.yml jobs can gate on a single computed plan (publish + stable) instead of re-encoding event/actor/ref logic across multiple jobs.
Changes:
- Add
catalog/snippets/workflows/publish-plan-task.ymlreusable workflow to computepublishandstableoutputs based on event/actor/ref inputs. - Update the workflow-snippets index (
catalog/snippets/workflows/README.md) to include the new task.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
catalog/snippets/workflows/README.md |
Documents the new publish-plan reusable task in the snippet catalog index. |
catalog/snippets/workflows/publish-plan-task.yml |
Introduces the reusable “publish plan” task that emits publish and stable outputs for downstream job gating. |
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Adds the canonical reusable
publish-plan-task.ymlto the catalog. It computes the release-gate decision once from the triggeringevent_name/actor/ref_nameand emits two outputs:publish—truefor a bot-authored push (the codegen App merges every bot PR), aschedule, or aworkflow_dispatchof main/develop;falsefor a human merge/promotion or a stray-branch dispatch.stable—truewhen the target branch ismain; main-only jobs gate onpublish && stable.Every
publish-release.ymljob then gates onneeds.plan.outputs.*instead of re-testing event/actor/branch across many jobs (WORKFLOW.md D2 "assert once at entry"). Consumed by the fleet gate PRs: LanguageTags #255, Utilities #388, aiopurpleair #26, NxWitness #494.Follows the release-model reconciliation (docs rewrite +
PUBLISH_ON_MERGEdeletion still pending). Snippet is LF-pinned; README row added.🤖 Generated with Claude Code