Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.6.27
0.6.28
6 changes: 5 additions & 1 deletion actions/release-plan/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ runs:
' "${plan_file}" "${RELEASE_TOOL_VERSION}"
} >> "${GITHUB_STEP_SUMMARY}"

cat "${plan_file}"
if [[ "${exit_code}" -eq 3 ]]; then
echo "::warning::Release plan is not ready; see the step summary and persisted state for details."
else
echo "Release plan ready: branch=${RELEASE_BRANCH}, ready=${ready}"
fi

exit "${exit_code}"
7 changes: 7 additions & 0 deletions tests/test_release_plan_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ def test_step_summary_does_not_print_public_release_text(self) -> None:
summary = content.split('echo "## Release plan"', 1)[1]
self.assertNotIn('public_release_text', summary)

def test_successful_plan_does_not_dump_full_contract_to_stdout(self) -> None:
content = ACTION.read_text(encoding="utf-8")

self.assertNotIn(' cat "${plan_file}"\n\n exit "${exit_code}"', content)
self.assertIn("Release plan ready: branch=", content)
self.assertIn("Release plan is not ready; see the step summary", content)


if __name__ == "__main__":
unittest.main()
Loading