Skip to content

Commit

Permalink
Changed formatting workflow to work better with our work flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Fur0rem committed Jan 29, 2024
1 parent 53646ec commit 9f14419
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/format.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Format Files

on:
push:
branches:
- main
on: push

jobs:
format:
Expand All @@ -20,9 +17,8 @@ jobs:
- name: Format files
run: |
git diff --name-only --diff-filter=d origin/main...HEAD | xargs clang-format -i -style=file src/*.c main.c src/*.h
git diff --name-only --diff-filter=d origin/main...HEAD | xargs clang-tidy -fix --config-file=.clang-tidy src/*.c main.c src/*.h
git diff --name-only --diff-filter=d origin/main...HEAD | xargs clang-format -i -style=file src/*.c main.c src/*.h
- name: Commit changes
run: |
git config --local user.email "action@github.com"
Expand Down
Empty file added src/utils.c
Empty file.
1 change: 1 addition & 0 deletions src/utils.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#define Err(type) struct { type value; char *message; }

0 comments on commit 9f14419

Please sign in to comment.