From a5f3404c315785118d3f680d3f06eb6e7cd8270e Mon Sep 17 00:00:00 2001 From: per1234 Date: Sat, 30 May 2020 07:39:06 -0700 Subject: [PATCH] Update remove-matcher commands to reflect changed problem matcher owners --- entrypoint.sh | 5 +++-- test/test.bats | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 7c486e0..203cace 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -33,8 +33,9 @@ else echo "Codespell found one or more problems" fi -# Remove the matcher, so no other jobs hit it. -echo "::remove-matcher owner=codespell::" +# Remove the matchers, so no other jobs hit them. +echo "::remove-matcher owner=codespell-matcher-default::" +echo "::remove-matcher owner=codespell-matcher-specified::" # If we are in warn-only mode, return always as if we pass if [ -n "${INPUT_ONLY_WARN}" ]; then diff --git a/test/test.bats b/test/test.bats index 96f5339..ea6b853 100644 --- a/test/test.bats +++ b/test/test.bats @@ -31,8 +31,9 @@ function setup() { [ "${lines[1]}" == "::add-matcher::${RUNNER_TEMP}/_github_workflow/codespell-matcher.json" ] outputRegex="^Running codespell on '${INPUT_PATH}'" [[ "${lines[2]}" =~ $outputRegex ]] - [ "${lines[-2]}" == "Codespell found one or more problems" ] - [ "${lines[-1]}" == "::remove-matcher owner=codespell::" ] + [ "${lines[-3]}" == "Codespell found one or more problems" ] + [ "${lines[-2]}" == "::remove-matcher owner=codespell-matcher-default::" ] + [ "${lines[-1]}" == "::remove-matcher owner=codespell-matcher-specified::" ] } @test "Check file names" {