-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
238 changed files
with
4,190 additions
and
1,598 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: "Format sourcecode" | ||
|
||
# run on pull requests to develop | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
# check out HEAD on the branch | ||
ref: ${{ github.head_ref }} | ||
# 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/[email protected] | ||
with: | ||
commit_message: 🎨 apply clang-format changes | ||
branch: ${{ github.head_ref }} |
Oops, something went wrong.