Check BASE_SHA only if it's a PR (#1083)
This commit is contained in:
parent
19c59cd26f
commit
613c370d29
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ if [ "$GITHUB_EVENT_NAME" = "schedule" ] ; then # running in scheduled job
|
|||
|
||||
echo "Doing full link check."
|
||||
set -x
|
||||
elif [ "$CI" = "true" ] ; then # running in PR CI build
|
||||
elif [ "$GITHUB_EVENT_NAME" = "pull_request" ] ; then # running in PR CI build
|
||||
if [ -z "$BASE_SHA" ]; then
|
||||
echo "error: unexpected state: BASE_SHA must be non-empty in CI"
|
||||
exit 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue