Skip to content
Merged
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
6 changes: 3 additions & 3 deletions .scripts/update_refs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ if [[ "$CURRENT_BRANCH" == release-* ]]; then
# NOTE (@NickLarsenNZ): find is not required for such a trivial case, but it is done for consitency
find stacks/stacks-v2.yaml \
-exec grep --color=always -l stackableRelease {} \; \
-exec sed -i -E "s|(stackableRelease:\s+)(\S+)|\1${STACKABLE_RELEASE}|" {} \; \
-exec sed -i -E "s#(stackableRelease:\s+)(\S+)#\1${STACKABLE_RELEASE}#" {} \; \
| prepend "\t"
maybe_commit "chore(release): $MESSAGE"

Expand All @@ -61,7 +61,7 @@ if [[ "$CURRENT_BRANCH" == release-* ]]; then
echo "$MESSAGE"
find demos stacks -type f \
-exec grep --color=always -lE "$SEARCH" {} \; \
-exec sed -i -E "s|${SEARCH}|${REPLACEMENT}|" {} \; \
-exec sed -i -E "s#${SEARCH}#${REPLACEMENT}#" {} \; \
| prepend "\t"
maybe_commit "chore(release): $MESSAGE"

Expand All @@ -80,7 +80,7 @@ echo "$MESSAGE"
# shellcheck disable=SC2016 # We intentionally don't want to expand the variable.
find demos stacks -type f \
-exec grep --color=always -l githubusercontent {} \; \
-exec sed -i -E 's|(stackabletech/demos)/main/|\1/\${UPDATE_BRANCH_REF}/|' {} \; \
-exec sed -i -E 's#(stackabletech/demos)/main/#\1/\${UPDATE_BRANCH_REF}/#' {} \; \
| prepend "\t"

# Now, for all modified files, we can use envsubst
Expand Down