Skip to content

Commit

Permalink
Update clang_format.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SaneEngineer committed Apr 30, 2024
1 parent 6221358 commit f6cd9a7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/clang_format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,14 @@ jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
# check out HEAD on the branch
ref: ${{ github.head_ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
# make sure the parent commit is grabbed as well, because
# that's what will get formatted (i.e. the most recent commit)
fetch-depth: 2
# format the latest commit
- uses: purduesigbots/clang-format-action@1
# use one of clang-format's supported styles or leave this out to use the style in your .clang-format file
with:
style: file
# commit the changes (if there are any)
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4.1.2
Expand Down

0 comments on commit f6cd9a7

Please sign in to comment.