Skip to content

Commit

Permalink
Fetch master for formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
JBenda committed Dec 14, 2023
1 parent ca6b2ee commit ce0dacd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ce0dacd

Please sign in to comment.