Skip to content

Commit

Permalink
Enable back sonarqube-action on pull-requests updates
Browse files Browse the repository at this point in the history
  • Loading branch information
fungiboletus authored Nov 13, 2020
1 parent a40c5bc commit 451115a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@

set -e

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

REPOSITORY_NAME=$(basename "${GITHUB_REPOSITORY}")

[[ ! -z ${INPUT_PASSWORD} ]] && SONAR_PASSWORD="${INPUT_PASSWORD}" || SONAR_PASSWORD=""
Expand Down

0 comments on commit 451115a

Please sign in to comment.