Check `BASE_SHA` only if it's a PR (#1083)
This commit is contained in:
parent
6753e20cbe
commit
9930c8bd21
|
|
@ -9,7 +9,7 @@ if [ "$GITHUB_EVENT_NAME" = "schedule" ] ; then # running in scheduled job
|
||||||
|
|
||||||
echo "Doing full link check."
|
echo "Doing full link check."
|
||||||
set -x
|
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
|
if [ -z "$BASE_SHA" ]; then
|
||||||
echo "error: unexpected state: BASE_SHA must be non-empty in CI"
|
echo "error: unexpected state: BASE_SHA must be non-empty in CI"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue