-
Notifications
You must be signed in to change notification settings - Fork 279
53 lines (37 loc) · 1.52 KB
/
autofix.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: autofix.ci # needed to securely identify the workflow
on:
pull_request:
paths: ["**.json", "**.cpp", "**.hpp", "**.h", "**.c", "**.md", "**.ts"]
permissions:
contents: read
jobs:
autofix:
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- run: sudo apt-get install astyle
- run: sudo pip install cmakelang
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: format C++ files
run: make astyle
- name: format markdown and typescript files
run: deno fmt
- name: format CMake files
run: make cmake-format
- name: json formatting
run: make style-all-json-parallel RELEASE=1
- uses: autofix-ci/action@d3e591514b99d0fca6779455ff8338516663f7cc
if: ${{ always() }}
with:
commit-message: "style(autofix.ci): automated formatting"
commment: |
The Autofix app has automatically formatted this Pull Request.
If you edit your PR on web UI, you can ignore this message.
If you edit your PR locally, YOU MUST DO EITHER OF THE FOLLOWING:
- Run `git pull` to merge the automated commit into your local copy of the PR branch.
- [Format your code locally](https://docs.cataclysmbn.org/en/contribute/contributing/#code-style), and force push to your PR branch.
If you don't do this, your following work will be based on the old commit, and cause MERGE CONFLICT.