diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2021-03-11 23:50:34 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-11 15:50:34 +0100 |
| commit | 613c370d294c88ec939be41ccca3fa0341c77fd7 (patch) | |
| tree | c7984c66763364e2be34cdbd92318a9d60dc0a16 /src/doc/rustc-dev-guide/ci | |
| parent | 19c59cd26f6e8d1d6dbc535b4d025704c12f8f10 (diff) | |
| download | rust-613c370d294c88ec939be41ccca3fa0341c77fd7.tar.gz rust-613c370d294c88ec939be41ccca3fa0341c77fd7.zip | |
Check `BASE_SHA` only if it's a PR (#1083)
Diffstat (limited to 'src/doc/rustc-dev-guide/ci')
| -rwxr-xr-x | src/doc/rustc-dev-guide/ci/linkcheck.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/rustc-dev-guide/ci/linkcheck.sh b/src/doc/rustc-dev-guide/ci/linkcheck.sh index 3d70432f5cf..88482354804 100755 --- a/src/doc/rustc-dev-guide/ci/linkcheck.sh +++ b/src/doc/rustc-dev-guide/ci/linkcheck.sh @@ -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 |
