Check `BASE_SHA` only if it's a PR (#1083)

This commit is contained in:
Yuki Okushi 2021-03-11 23:50:34 +09:00 committed by GitHub
parent 6753e20cbe
commit 9930c8bd21
1 changed files with 1 additions and 1 deletions

View File

@ -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