fix(ci): create-release workflow concludes success on non-release merges #326
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
psa-systems/mokosh-server!326
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/ci-create-release-skip-conclusion"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The workflow fires on every PR-closed event targeting main, but only a
release/v*head ref should actually publish a release. The job-levelifskipped the whole job on every non-release merge, which made the workflow conclude asskipped- the Forgejo repo status badge counted that as "not success" and the repo appeared red on the Actions overview even though every other workflow on the merge commit (check / e2e / integration / build-oci-image) was green. Replace the job-level gate with a step-level gate: an unconditionalGatestep recordsdo_release=true|false, and the two real steps gate on that output. The job always runs at least one step successfully and the workflow's conclusion issuccesswhether or not a release publishes.