mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-12 09:47:15 +00:00
fix clang-format workflow
This commit is contained in:
parent
c76f0e4e52
commit
173d445104
4
.github/workflows/clang-format.yml
vendored
4
.github/workflows/clang-format.yml
vendored
|
|
@ -60,10 +60,10 @@ jobs:
|
|||
|
||||
BASE_SHA=""
|
||||
if [ "$EVENT_NAME" = "pull_request" ]; then
|
||||
git fetch --no-tags origin "$PR_BASE_REF" --depth=1
|
||||
git fetch --no-tags origin "$PR_BASE_REF"
|
||||
BASE_SHA="$(git merge-base "origin/$PR_BASE_REF" "$CURRENT_SHA")"
|
||||
elif [ -n "$BEFORE_SHA" ] && [ "$BEFORE_SHA" != "0000000000000000000000000000000000000000" ]; then
|
||||
BASE_SHA="$BEFORE_SHA"
|
||||
fi
|
||||
|
||||
bash ./.github/scripts/check-clang-format.sh "$BASE_SHA" "$CURRENT_SHA"
|
||||
bash ./.github/scripts/check-clang-format.sh "$BASE_SHA" "$CURRENT_SHA"
|
||||
|
|
|
|||
Loading…
Reference in a new issue