Skip to content

Commit 5fdbf67

Browse files
committed
ci(check): use composite action
1 parent 2efda81 commit 5fdbf67

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

.github/workflows/check.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,13 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- name: Cache IDEA downloading
18-
id: cache-idea
19-
uses: actions/cache@v4
20-
with:
21-
path: ~/idea-IC-*
22-
key: ${{ runner.os }}-ideaIC-2024.3.1.1
17+
- uses: actions/checkout@v4
2318

24-
- name: Install IntelliJ IDEA
25-
if: steps.cache-idea.outputs.cache-hit != 'true'
26-
run: curl https://download.jetbrains.com/idea/ideaIC-2024.3.1.1.tar.gz -L | tar -xzf - -C ~
27-
28-
- uses: actions/checkout@v3
19+
- uses: iseki0/idea-download-action@master
2920

3021
- name: Reformat
31-
run: ~/idea-IC-*/bin/format.sh -r -m *.kt,*.kts,*.java .
22+
run: format -r -m *.kt,*.kts,*.java .
23+
3224
- name: Check
3325
run: git diff --exit-code --color
3426

0 commit comments

Comments
 (0)