Skip to content

Commit 990997b

Browse files
committed
fix(workflow): correct bolt task command in test-upgrade-legacy job
- Add missing bundle exec to bolt task run command - Ensure correct modulepath is specified for bolt execution - Redirect output to peadm_config.json for yq processing
1 parent f7ff33e commit 990997b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,11 @@ 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-
bolt task run peadm::get_peadm_config -t $primary --no-host-key-check --format json > peadm_config.json
131+
bundle exec bolt task run peadm::get_peadm_config \
132+
-t $primary \
133+
--modulepath spec/fixtures/modules \
134+
--no-host-key-check \
135+
--format json > peadm_config.json
132136
legacy_compiler=$(yq '.items[0].value.params.legacy_compilers[0]' peadm_config.json)
133137
if [ "$compiler" != "$legacy_compiler" ]; then
134138
echo "Compiler conversion failed"

0 commit comments

Comments
 (0)