8000 Use yq 4.x UI · arduino/cpp-test-action@dcc433d · GitHub
[go: up one dir, main page]

Skip to content

Commit dcc433d

Browse files
committed
Use yq 4.x UI
The recent yq 4.0.0 release completely reworked the UI, breaking compatibility with all previous commands.
1 parent ff97be9 commit dcc433d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ runs:
5959
run: |
6060
if [[ -n "${{ inputs.runtime-path }}" ]]; then
6161
echo "::warning::The runtime-path input is deprecated. Please use runtime-paths instead."
62-
RUNTIME_PATHS="${{ inputs.runtime-path }}"
62+
RUNTIME_PATHS="- ${{ inputs.runtime-path }}"
6363
else
6464
RUNTIME_PATHS="${{ inputs.runtime-paths }}"
6565
fi
@@ -73,7 +73,7 @@ runs:
7373
echo "::error file=$runtimePath::While running $runtimePath"
7474
fi
7575
echo "::endgroup::"
76-
done <<<"$(echo "$RUNTIME_PATHS" | yq read - [*])"
76+
done <<<"$(echo "$RUNTIME_PATHS" | yq eval '.[]' -)"
7777
exit $EXIT_STATUS
7878
7979
- name: Parse coverage-exclude-paths input
@@ -82,7 +82,7 @@ runs:
8282
run: |
8383
while IFS='' read -r excludePath && [[ -n "$excludePath" ]]; do
8484
excludePaths="$excludePaths $excludePath"
85-
done <<<"$(echo "${{ inputs.coverage-exclude-paths }}" | yq read - [*])"
85+
done <<<"$(echo "${{ inputs.coverage-exclude-paths }}" | yq eval '.[]' -)"
8686
# Make the parsed paths an output so it can be used by the next step
8787
echo "::set-output name=paths::$excludePaths"
8888

0 commit comments

Comments
 (0)
0