Skip to content

Commit 11df555

Browse files
committed
fix(workflow): correct legacy compiler selection in test-legacy-upgrade.yaml
- Replace `head -n 2` with `sed -n 2p` for accurate selection of the second compiler
1 parent 957f060 commit 11df555

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ jobs:
174174
echo ::group::get_peadm_config
175175
primary=$(yq '.groups[].targets[] | select(.vars.role == "primary") | .name' spec/fixtures/litmus_inventory.yaml)
176176
compiler=$(yq '.groups[].targets[] | select(.vars.role == "compiler") | .name' spec/fixtures/litmus_inventory.yaml | head -n 1)
177-
legacy_compiler=$(yq '.groups[].targets[] | select(.vars.role == "compiler") | .name' spec/fixtures/litmus_inventory.yaml | head -n 2)
177+
legacy_compiler=$(yq '.groups[].targets[] | select(.vars.role == "compiler") | .name' spec/fixtures/litmus_inventory.yaml | sed -n 2p)
178178
bundle exec bolt task run peadm::get_peadm_config \
179179
--targets $primary \
180180
--inventoryfile spec/fixtures/litmus_inventory.yaml \

0 commit comments

Comments
 (0)