Skip to content

Commit 4993d04

Browse files
committed
[ci] Fix syntax errors in yq and jq
gherrit-pr-id: Gebjymcx3pko5oy6wx4qr4i6er4i3iodm
1 parent a5f537a commit 4993d04

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ci/check_all_toolchains_tested.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ set -eo pipefail
1818
# non-zero error code, which causes this script to fail (thanks to
1919
# `set -e`).
2020
diff \
21-
<(cat .github/workflows/ci.yml | yq '.jobs.build_test.strategy.matrix.toolchain | .[]' | \
21+
<(cat .github/workflows/ci.yml | yq -r '.jobs.build_test.strategy.matrix.toolchain | .[]' | \
2222
sort -u | grep -v '^\(msrv\|stable\|nightly\)$') \
2323
<(cargo metadata -q --format-version 1 | \
2424
jq -r ".packages[] | select(.name == \"zerocopy\").metadata.\"build-rs\" | keys | .[]" | \

ci/check_job_dependencies.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs=$(for i in $(find .github -iname '*.yaml' -or -iname '*.yml')
1818
# This gets the list of jobs that all-jobs-succeed does not depend on.
1919
comm -23 \
2020
<(yq -r '.jobs | keys | .[]' "$i" | sort | uniq) \
21-
<(yq -r '.jobs.all-jobs-succeed.needs[]' "$i" | sort | uniq)
21+
<(yq -r '.jobs["all-jobs-succeed"].needs[]' "$i" | sort | uniq)
2222
fi
2323
2424
# The grep call here excludes all-jobs-succeed from the list of jobs that

0 commit comments

Comments
 (0)