Skip to content

Commit 74ff058

Browse files
committed
ci: normalize ANSI in release version checks
1 parent e8b4f88 commit 74ff058

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎.github/workflows/release-qualification.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ jobs:
212212
-DVIX_INSTALLER_SOURCE_CONFIG_FILE="$RUNNER_TEMP/vix-provision/source.toml"
213213
cmake --build cli-build --target vix_cli vix_installer vix_release_tool --parallel 2
214214
cli-build/vix --version | tee "$RUNNER_TEMP/package-cli-version.txt"
215-
grep -F "version : $RELEASE_VERSION" "$RUNNER_TEMP/package-cli-version.txt"
215+
sed -E 's/\x1B\[[0-9;]*[[:alpha:]]//g' "$RUNNER_TEMP/package-cli-version.txt" \
216+
| grep -F "version : $RELEASE_VERSION"
216217
cli-build/vix-installer --validate-provisioning
217218
- name: Assemble exact runtime dependencies and canonical distribution trees
218219
shell: bash
@@ -431,7 +432,8 @@ jobs:
431432
grep -Fx "cli_version = \"${GITHUB_REF_NAME#v}\"" dist/release-build-info.toml
432433
grep -Fx "sdk = \"${GITHUB_REF_NAME#v}\"" dist/release-build-info.toml
433434
env -u LD_LIBRARY_PATH "$fresh/bin/vix" --version | tee "$RUNNER_TEMP/vix-version.txt"
434-
grep -F "version : ${GITHUB_REF_NAME#v}" "$RUNNER_TEMP/vix-version.txt"
435+
sed -E 's/\x1B\[[0-9;]*[[:alpha:]]//g' "$RUNNER_TEMP/vix-version.txt" \
436+
| grep -F "version : ${GITHUB_REF_NAME#v}"
435437
env -u LD_LIBRARY_PATH "$fresh/bin/vix" help > "$RUNNER_TEMP/vix-help.txt"
436438
actual_commands="$(awk '
437439
/^(Project|Packages|System):$/ { section=1; next }

0 commit comments

Comments
 (0)