Skip to content

Commit 2b2bf6c

Browse files
committed
Revert "Only run error code explanation removal check if on CI"
This reverts commit d6962ff.
1 parent 9e299ab commit 2b2bf6c

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

src/ci/docker/host-x86_64/mingw-check/validate-error-codes.sh

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
#!/bin/bash
22
# Checks that no error code explanation is removed.
33

4-
set -eo pipefail
5-
6-
if [[ -z "$BASE_COMMIT" ]]; then
7-
echo "not checking error code explanations removal"
8-
exit 0
9-
fi
4+
set -euo pipefail
105

116
echo "Check if an error code explanation was removed..."
127

src/ci/docker/run.sh

+3-7
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,9 @@ else
219219
command="/checkout/src/ci/run.sh"
220220
fi
221221

222-
if [ "$CI" != "" ]; then
223-
# Get some needed information for $BASE_COMMIT
224-
git fetch "https://github.com/$GITHUB_REPOSITORY" "$GITHUB_BASE_REF"
225-
BASE_COMMIT="$(git merge-base FETCH_HEAD HEAD)"
226-
else
227-
BASE_COMMIT=""
228-
fi
222+
# Get some needed information for $BASE_COMMIT
223+
git fetch "https://github.com/$GITHUB_REPOSITORY" "$GITHUB_BASE_REF"
224+
BASE_COMMIT="$(git merge-base FETCH_HEAD HEAD)"
229225

230226
docker \
231227
run \

0 commit comments

Comments
 (0)