File tree 2 files changed +4
-13
lines changed
2 files changed +4
-13
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
# Checks that no error code explanation is removed.
3
3
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
10
5
11
6
echo " Check if an error code explanation was removed..."
12
7
Original file line number Diff line number Diff line change @@ -219,13 +219,9 @@ else
219
219
command=" /checkout/src/ci/run.sh"
220
220
fi
221
221
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) "
229
225
230
226
docker \
231
227
run \
You can’t perform that action at this time.
0 commit comments