Skip to content

Commit

Permalink
Test action
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Dec 4, 2019
1 parent 7ef21ae commit f0f63a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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:
Expand Down

0 comments on commit f0f63a1

Please sign in to comment.