From ce0dacd8e644d94db1aa8069cca3ad76945de8d4 Mon Sep 17 00:00:00 2001 From: Julian Benda Date: Thu, 14 Dec 2023 22:36:43 +0100 Subject: [PATCH] Fetch master for formatting --- .github/workflows/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8159aeaa..07f5d417 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -169,12 +169,16 @@ jobs: with: name: ${{ matrix.artifact }}-www path: proofing/ink-proof/out + clang-format: name: "Check Formatting" runs-on: ubuntu-latest if: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'master' }} steps: - uses: actions/checkout@v3 + - name: 'Fetch master branch' + run: | + git fetch origin master --depth 1 - name: Check clang-format run: | diff=$(git clang-format-15 --style file --diff master)