mirror of
https://github.com/sonarsource/sonarcloud-github-action.git
synced 2026-06-06 09:17:07 +00:00
Do not scan twice a push on a PR
This commit is contained in:
parent
cb011a9008
commit
d4de825074
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue