Skip to content

Commit 5d07152

Browse files
committed
Update formatter action
1 parent a3c659a commit 5d07152

File tree

1 file changed

+5
-30
lines changed

1 file changed

+5
-30
lines changed

.github/workflows/JuliaFormatter.yml

Lines changed: 5 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,9 @@ on:
77

88
jobs:
99
format:
10-
runs-on: ubuntu-24.04
11-
timeout-minutes: 30
10+
runs-on: ubuntu-latest
1211
steps:
13-
- name: Cancel Previous Runs
14-
uses: styfle/[email protected]
15-
with:
16-
access_token: ${{ github.token }}
17-
18-
- uses: actions/checkout@v4
19-
20-
- uses: dorny/[email protected]
21-
id: filter
22-
with:
23-
filters: |
24-
julia_file_change:
25-
- added|modified: '**.jl'
26-
27-
- uses: julia-actions/setup-julia@v2
28-
if: steps.filter.outputs.julia_file_change == 'true'
29-
with:
30-
version: '1.10'
31-
32-
- name: Apply JuliaFormatter
33-
if: steps.filter.outputs.julia_file_change == 'true'
34-
run: |
35-
julia --color=yes --project=.dev .dev/climaformat.jl --verbose .
36-
37-
- name: Check formatting diff
38-
if: steps.filter.outputs.julia_file_change == 'true'
39-
run: |
40-
git diff --color=always --exit-code
12+
- uses: julia-actions/julia-format@v3
13+
with:
14+
version: '1' # Set `version` to '1.0.54' if you need to use JuliaFormatter.jl v1.0.54 (default: '1')
15+
suggestion-label: 'format-suggest' # leave this unset or empty to show suggestions for all PRs

0 commit comments

Comments
 (0)