-
-
Notifications
You must be signed in to change notification settings - Fork 75
32 lines (32 loc) · 1002 Bytes
/
reformat.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Reformat
on: [push, pull_request]
jobs:
reformat:
name: Reformat
runs-on: ubuntu-latest
if: contains(github.event.head_commit.message, '[reformat]')
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Format with clang-format
uses: DoozyX/[email protected]
with:
source: '.'
exclude: './skyrim-platform/src/third_party ./skymp5-server/cpp/third_party/MakeID.h'
extensions: 'h,cpp,hpp'
clangFormatVersion: 12
inplace: True
# - name: Install yarn packages
# uses: borales/actions-yarn@v4
# with:
# cmd: install
# - name: Format with prettier
# uses: borales/actions-yarn@v4
# with:
# cmd: prettier-format
- uses: EndBug/add-and-commit@v9
with:
default_author: github_actor
message: 'Committing reformat changes'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}