-
Notifications
You must be signed in to change notification settings - Fork 98
44 lines (40 loc) · 1.1 KB
/
auto format.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
name: autofix.ci
on:
pull_request:
branches:
# - dev
# - master
- staged
- experimental
paths-ignore:
- "docs/**"
# - ".github/**"
- "howto/**"
- "*.md"
- "locale/**"
permissions:
contents: read
jobs:
clang-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
# format the latest commit
- name: ubuntu install clang-format
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
brew install clang-format
(/home/linuxbrew/.linuxbrew/opt/clang-format/bin/git-clang-format --binary=/home/linuxbrew/.linuxbrew/opt/clang-format/bin/clang-format --style=file HEAD^) || true
- uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c
css-js-html-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- run: |
npm install -g prettier
- run: npx prettier . --write
- uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c