8000 Merge pull request #3 from per1234/yq4 · arduino/cpp-test-action@6d35af7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6d35af7

Browse files
authored
Merge pull request #3 from per1234/yq4
Update yq commands to use 4.x UI
2 parents bdae958 + dcc433d commit 6d35af7

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

action.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ runs:
4444
run: |
4545
sudo snap install yq > /dev/null
4646
47+
- name: Update APT package lists
48+
shell: bash
49+
run: |
50+
sudo apt-get update > /dev/null
51+
4752
- name: Install Valgrind
4853
shell: bash
4954
run: |
@@ -54,7 +59,7 @@ runs:
5459
run: |
5560
if [[ -n "${{ inputs.runtime-path }}" ]]; then
5661
echo "::warning::The runtime-path input is deprecated. Please use runtime-paths instead."
57-
RUNTIME_PATHS="${{ inputs.runtime-path }}"
62+
RUNTIME_PATHS="- ${{ inputs.runtime-path }}"
5863
else
5964
RUNTIME_PATHS="${{ inputs.runtime-paths }}"
6065
fi
@@ -68,7 +73,7 @@ runs:
6873
echo "::error file=$runtimePath::While running $runtimePath"
6974
fi
7075
echo "::endgroup::"
71-
done <<<"$(echo "$RUNTIME_PATHS" | yq read - [*])"
76+
done <<<"$(echo "$RUNTIME_PATHS" | yq eval '.[]' -)"
7277
exit $EXIT_STATUS
7378
7479
- name: Parse coverage-exclude-paths input
@@ -77,7 +82,7 @@ runs:
7782
run: |
7883
while IFS='' read -r excludePath && [[ -n "$excludePath" ]]; do
7984
excludePaths="$excludePaths $excludePath"
80-
done <<<"$(echo "${{ inputs.coverage-exclude-paths }}" | yq read - [*])"
85+
done <<<"$(echo "${{ inputs.coverage-exclude-paths }}" | yq eval '.[]' -)"
8186
# Make the parsed paths an output so it can be used by the next step
8287
echo "::set-output name=paths::$excludePaths"
8388

0 commit comments

Comments
 (0)
0