From f0f63a1ee79b8498232cc9292d677c1ff709951d Mon Sep 17 00:00:00 2001 From: sobolevn Date: Wed, 4 Dec 2019 13:34:29 +0300 Subject: [PATCH] Test action --- scripts/entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index dbb4ef1..d289d41 100644 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -1,7 +1,7 @@ #!/bin/bash # Diagnostic output: -echo "Using reported: $INPUT_REPORTER" +echo "Using reporter: $INPUT_REPORTER" echo "Linting options: $INPUT_OPTIONS" echo 'dotenv-linter --version:' dotenv-linter --version @@ -17,7 +17,7 @@ elif [ "$INPUT_REPORTER" == 'github-pr-review' ] || # We will need this token for `reviewdog` to work: export REVIEWDOG_GITHUB_API_TOKEN="$GITHUB_TOKEN" - output=$(dotenv-linter "$INPUT_OPTIONS") + output=$(dotenv-linter "$INPUT_OPTIONS" 2>&1) echo "dotenv output: $output" echo "$output" | reviewdog -efm='%f:%l %m' -reporter="$INPUT_REPORTER" -level=error # `reviewdog` does not fail with any status code, so we have to get dirty: