Skip to content
This repository has been archived by the owner on May 31, 2023. It is now read-only.

Commit

Permalink
fix: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
kkania-splunk authored Aug 24, 2022
1 parent fc37298 commit c5a42a5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,30 @@ echo "::endgroup::"
echo ::group::reviewdog_output

echo "event name: $GITHUB_EVENT_NAME"
echo "INPUT REPORTER: $INPUT_REPORTER"

if [ -z ${INPUT_REPORTER+x} ];
then
if [ $GITHUB_EVENT_NAME = "schedule" ]
then
echo "local"
export REPORTER=local
elif [ -z ${GITHUB_BASE_REF+x} ];
then
echo "github-pr-review"
export REPORTER=github-pr-review
else
echo "github-check"
export REPORTER=github-check
fi
else
export REPORTER=$INPUT_REPORTER
fi

echo "reporter: $REPORTER"
export REPORTER=local
echo "reporter: $REPORTER"

go-earlybird -show-solutions -suppress -config=/.go-earlybird/ -ignorefile="${IGNORE_FILE}" \
-path=${WORKSPACE_DIR}/${INPUT_WORKDIR} -format=json ${INPUT_ARGS} \
| python3 /annotate.py \
Expand Down

0 comments on commit c5a42a5

Please sign in to comment.