From ff97be9ad6508b3430e7ae1907260045dc1884a4 Mon Sep 17 00:00:00 2001 From: per1234 Date: Wed, 30 Dec 2020 21:57:07 -0800 Subject: [PATCH 1/2] Update APT package lists The GitHub Actions runner has outdated APT package lists, which causes `apt-get install` commands to fail. --- action.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/action.yml b/action.yml index 134b6ec..3e7b024 100644 --- a/action.yml +++ b/action.yml @@ -44,6 +44,11 @@ runs: run: | sudo snap install yq > /dev/null + - name: Update APT package lists + shell: bash + run: | + sudo apt-get update > /dev/null + - name: Install Valgrind shell: bash run: | From dcc433dbfc8897edb319ee9e46acd483b938f877 Mon Sep 17 00:00:00 2001 From: per1234 Date: Wed, 30 Dec 2020 21:44:06 -0800 Subject: [PATCH 2/2] Use yq 4.x UI The recent yq 4.0.0 release completely reworked the UI, breaking compatibility with all previous commands. --- action.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 3e7b024..4cae07b 100644 --- a/action.yml +++ b/action.yml @@ -59,7 +59,7 @@ runs: run: | if [[ -n "${{ inputs.runtime-path }}" ]]; then echo "::warning::The runtime-path input is deprecated. Please use runtime-paths instead." - RUNTIME_PATHS="${{ inputs.runtime-path }}" + RUNTIME_PATHS="- ${{ inputs.runtime-path }}" else RUNTIME_PATHS="${{ inputs.runtime-paths }}" fi @@ -73,7 +73,7 @@ runs: echo "::error file=$runtimePath::While running $runtimePath" fi echo "::endgroup::" - done <<<"$(echo "$RUNTIME_PATHS" | yq read - [*])" + done <<<"$(echo "$RUNTIME_PATHS" | yq eval '.[]' -)" exit $EXIT_STATUS - name: Parse coverage-exclude-paths input @@ -82,7 +82,7 @@ runs: run: | while IFS='' read -r excludePath && [[ -n "$excludePath" ]]; do excludePaths="$excludePaths $excludePath" - done <<<"$(echo "${{ inputs.coverage-exclude-paths }}" | yq read - [*])" + done <<<"$(echo "${{ inputs.coverage-exclude-paths }}" | yq eval '.[]' -)" # Make the parsed paths an output so it can be used by the next step echo "::set-output name=paths::$excludePaths"