Skip to content

Commit 0a8dc47

Browse files
committed
fix ci format check
1 parent 25887b4 commit 0a8dc47

1 file changed

Lines changed: 18 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,29 +30,36 @@ jobs:
3030
with:
3131
path: "build/docs"
3232

33-
check-format:
33+
format:
3434
runs-on: ubuntu-latest
3535
permissions:
36-
checks: write
37-
issues: write
38-
pull-requests: write
36+
contents: write
3937
steps:
4038
- uses: "actions/checkout@v4"
4139
with:
4240
fetch-depth: 0
4341
- uses: "./.github/actions/setup"
44-
- run: "./gradlew spotlessApply"
45-
- if: "${{ github.event_name == 'pull_request' }}"
46-
uses: reviewdog/action-suggester@v1
42+
- run: mise fix
43+
- run: |
44+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
45+
git config user.name "github-actions[bot]"
46+
git diff --exit-code || (git add . && git commit -m 'Apply mise fix' && git push)
47+
git diff --exit-code
48+
49+
check-hk:
50+
runs-on: ubuntu-latest
51+
steps:
52+
- uses: "actions/checkout@v4"
4753
with:
48-
tool_name: spotless
49-
cleanup: false
50-
- run: "git diff --exit-code"
54+
fetch-depth: 0
55+
- uses: "./.github/actions/setup"
56+
- run: mise check
5157

5258
all-good:
5359
needs:
5460
- "test"
55-
- "check-format"
61+
- "format"
62+
- "check-hk"
5663
- "build-docs"
5764
runs-on: "ubuntu-latest"
5865
steps:

0 commit comments

Comments
 (0)