feat: add check_previous_channel_release composite action#73
Merged
Conversation
Promotes the per-repository check_previous_channel_release.sh script
into a reusable composite action so module repositories don't have to
ship and maintain their own copy.
The version parser now handles both single-line (`{"version":"v0.1.14"}`)
and pretty-printed multi-line `version.json` produced by yq (newlines
and indentation around the keys), using a multiline-aware PCRE grep.
2 tasks
This was referenced May 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
check_previous_channel_releasethat verifies the previous release channel exposes the same module tag before promoting to the next channel..github/check_previous_channel_release.shin module repositories (e.g.csi-ceph).version.jsonparser so it handles both single-line ({"version":"v0.1.14"}) and pretty-printed multi-line output fromyq -o=json(newlines and indentation around the keys), via a multiline-aware PCRE grep (grep -aoPz).README.mdto list the new action.Usage example
Test plan
grep -aoPz '\{\s*"version"\s*:\s*"[^"]+"\s*\}' | head -z -n 1 | tr -d '\0' | jq -r .versionpipeline against:{"version":"v0.1.14"}{\n "version": "v0.1.0"\n}csi-cephdeploy_prod.yml) tocheck_previous_channel_release@v14and triggering a non-alpha channel deploy.