Skip to content

Clarify release-skip log message for workflow_dispatch - #412

Merged
ptr727 merged 1 commit into
developfrom
fix/release-skip-log-message
Jun 4, 2026
Merged

ptr727 merged 1 commit into
developfrom
fix/release-skip-log-message

Conversation

@ptr727

@ptr727 ptr727 commented Jun 4, 2026

Copy link
Copy Markdown
Owner

Follow-up to #408 (Copilot review on #411): the "Check for existing release" step always logged "skipping release creation", but on workflow_dispatch the 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

Copilot AI review requested due to automatic review settings June 4, 2026 02:24

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
ptr727 merged commit 0373fbe into develop Jun 4, 2026
8 checks passed
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.
@ptr727
ptr727 deleted the fix/release-skip-log-message branch July 7, 2026 21:06
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.

2 participants