From d4de825074c466e0812ae129d1e1dcfbe4adc55d Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Wed, 5 Jun 2019 19:14:12 +0200 Subject: [PATCH] Do not scan twice a push on a PR --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index f44a5a6..4a82f55 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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