You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo "::error::CPFLOW_VERSION can only be used when control_plane_flow_ref is a release tag like v${CPFLOW_VERSION}. Current control_plane_flow_ref: ${CONTROL_PLANE_FLOW_REF:-<empty>}. Leave CPFLOW_VERSION unset when testing a commit SHA or branch so cpflow is built from the same source as the reusable workflow."
134
+
exit 1
135
+
fi
136
+
137
+
if [[ "${actual_version}" != "${expected_version}" ]]; then
138
+
echo "::error::CPFLOW_VERSION must match control_plane_flow_ref. CPFLOW_VERSION=${CPFLOW_VERSION}, normalized CPFLOW_VERSION=${actual_version:-<unrecognized>}, control_plane_flow_ref=${CONTROL_PLANE_FLOW_REF}, expected CPFLOW_VERSION=${expected_version}."
Copy file name to clipboardExpand all lines: CHANGELOG.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,14 @@ In addition to the standard keepachangelog.com categories, this project uses a l
12
12
13
13
## [Unreleased]
14
14
15
+
### Added
16
+
17
+
- Added a generated workflow guard that fails early when `CPFLOW_VERSION` does not match the `control_plane_flow_ref` release tag. This prevents review apps from running with reusable workflow/composite action code from one `control-plane-flow` version and a `cpflow` gem from another.
18
+
19
+
### Fixed
20
+
21
+
- Fixed generated Control Plane entrypoints so database preparation runs through `./bin/rails`, stops the container on failure, and only runs for Rails server commands instead of every workload sharing the image.
0 commit comments