Skip to content

Commit f7ff33e

Browse files
committed
fix(workflow): correct yq command in test-upgrade-legacy job
- Redirect bolt task output to a file for yq processing - Ensure accurate extraction of legacy_compiler from peadm_config.json
1 parent 415672c commit f7ff33e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/test-upgrade-legacy.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ jobs:
128128
run: |
129129
primary=$(yq '.groups[].targets[] | select(.vars.role == "primary") | .name' spec/fixtures/litmus_inventory.yaml)
130130
compiler=$(yq '.groups[].targets[] | select(.vars.role == "compiler") | .name' spec/fixtures/litmus_inventory.yaml | head -n 1)
131-
legacy_compiler=$(yq '.items[0].value.params.legacy_compilers[0]' bolt task run peadm::get_peadm_config -t $primary --no-host-key-check --format json)
131+
bolt task run peadm::get_peadm_config -t $primary --no-host-key-check --format json > peadm_config.json
132+
legacy_compiler=$(yq '.items[0].value.params.legacy_compilers[0]' peadm_config.json)
132133
if [ "$compiler" != "$legacy_compiler" ]; then
133134
echo "Compiler conversion failed"
134135
exit 1

0 commit comments

Comments
 (0)