Skip to content

Commit

Permalink
Do not scan twice a push on a PR
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Brandhof committed Jun 5, 2019
1 parent cb011a9 commit d4de825
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ fi

if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then
EVENT_ACTION=$(jq -r ".action" "${GITHUB_EVENT_PATH}")
if [[ "${EVENT_ACTION}" != "opened" ]] && [[ "${EVENT_ACTION}" != "synchronize" ]]; then
echo "No need to run analysis"
if [[ "${EVENT_ACTION}" != "opened" ]]; then
echo "No need to run analysis. It is already triggered by the push event."
exit 78
fi
fi
Expand Down

0 comments on commit d4de825

Please sign in to comment.