summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/lint.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 6d90aad439..3d1e3ad44a 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -13,5 +13,7 @@ jobs:
- name: Whitespace errors
run: |
+ BASE_SHA="${{ github.event.pull_request.base.sha }}"
+ BASE_SHA="${BASE_SHA:-4b825dc642cb6eb9a060e54bf8d69288fbee4904}"
git config core.whitespace blank-at-eol
- git diff --color --check ${{ github.event.pull_request.base.sha }} -- './*' ':!*.patch'
+ git diff --color --check "$BASE_SHA" -- './*' ':!*.patch \ No newline at end of file