Repository navigation
Clarify release-skip log message for workflow_dispatch - #412
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the publish-release.yml workflow’s “Check for existing release” logging to be accurate for workflow_dispatch runs (where release creation is intentionally allowed to “refresh/repair” an existing release), without changing any gating or release behavior.
Changes:
- Make the “release exists” message conditional on
github.event_name. - For
workflow_dispatch, log that the existing release will be refreshed instead of “skipping release creation”.
ptr727
added a commit
that referenced
this pull request
Jun 4, 2026
) Back-port from the PlexCleaner two-phase CI/CD port (ptr727/PlexCleaner#723), where this repo's patterns were audited for the same issues. ## Applied - **Gate `smoke-build` on `test-release`** (`needs: [changes, test-release]`). The smoke build builds Docker images, so it shouldn't be spent when the test job is already failing; a failed `test-release` now leaves smoke-build skipped and the aggregator blocks on the test failure directly. Brings NxWitness in line with the sibling repos' PR workflows. ## Audited — already present in NxWitness (no change needed) - `github-release` checks out NBGV `GitCommitId` and allows `workflow_dispatch` through the skip-if-exists gate (#408/#412). - Docker `cache-to` already uses `ignore-error=true` (gha cache). - `publish-release.yml` has **no `push` trigger**, so the no-op-push concurrency/badge issues don't arise. - `publish-docker-readme-task` is called with an explicit `ref: main`, so it renders the README from the right branch. ## Noted for maintainer follow-up (NOT changed here) - **`build-main` feeds the versioned release from a moving `ref: main`** while `get-version` resolves the release version separately — the same race fixed in PlexCleaner/ProjectTemplate by pinning leaf builds to `GitCommitId`. That pin is **not safe to apply here**: `build-docker-task` overloads `inputs.ref` as the image-matrix branch selector (`select(.Branch == $ref)`), so passing a SHA would match no rows. A proper fix decouples `ref` (checkout/version) from `branch` (matrix selector) — a small refactor better owned by the maintainer. (Low practical risk: requires a commit landing on `main` mid-publish.) All workflows pass `actionlint`. Handed to the maintainer for merge.
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.
Follow-up to #408 (Copilot review on #411): the "Check for existing release" step always logged "skipping release creation", but on
workflow_dispatchthe create step is allowed through (to repair a release), so the log was misleading. Make the message event-aware — it now says the dispatch will refresh the release instead of skipping.Log-string only; no behavior change.
🤖 Generated with Claude Code