fix(release): honor explicit unreleased dry-run input

This commit is contained in:
Peter Steinberger
2026-07-17 12:58:56 +01:00
parent a291cf7296
commit 363e8b09ec
2 changed files with 8 additions and 4 deletions

View File

@@ -698,10 +698,14 @@ describe("scripts/lib/plugin-prerelease-test-plan.mjs", () => {
currentTreeAllowance,
);
const fullReleaseAllowance =
"${{ inputs.target_context_ref == '' && (inputs.allow_unreleased_changelog || inputs.ref == 'main' || inputs.ref == 'refs/heads/main') }}";
"${{ inputs.allow_unreleased_changelog || (inputs.target_context_ref == '' && (inputs.ref == 'main' || inputs.ref == 'refs/heads/main')) }}";
const summarizeTarget = fullReleaseWorkflow.jobs.resolve_target.steps.find(
(step: WorkflowStep) => step.name === "Summarize target",
);
const releaseChecksDispatch = fullReleaseWorkflow.jobs.release_checks.steps.find(
(step: WorkflowStep) => step.name === "Dispatch and monitor release checks",
);
expect(summarizeTarget?.env?.ALLOW_UNRELEASED_CHANGELOG).toBe(fullReleaseAllowance);
expect(releaseChecksDispatch?.env?.ALLOW_UNRELEASED_CHANGELOG).toBe(fullReleaseAllowance);
});