Skip to content

Commit c3ec674

Browse files
committed
update format action
1 parent 2a78d11 commit c3ec674

1 file changed

Lines changed: 21 additions & 21 deletions

File tree

.github/workflows/format.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
name: Format
1+
name: Runic formatting
22
on:
33
push:
4-
branches: [master]
5-
tags: [v*]
4+
branches:
5+
- 'master'
6+
- 'release-'
7+
tags:
8+
- '*'
69
pull_request:
7-
810
jobs:
9-
format:
10-
name: "Format Check"
11+
runic:
12+
name: Runic
1113
runs-on: ubuntu-latest
1214
steps:
13-
- uses: actions/checkout@v4
14-
- uses: julia-actions/setup-julia@v2
15+
- uses: actions/checkout@v5
16+
# - uses: julia-actions/setup-julia@v2
17+
# with:
18+
# version: '1'
19+
# - uses: julia-actions/cache@v2
20+
- uses: fredrikekre/runic-action@v1
1521
with:
16-
version: 1
17-
- uses: julia-actions/cache@v2
18-
- name: Install JuliaFormatter and format
19-
run: |
20-
using Pkg
21-
Pkg.add(PackageSpec(name="JuliaFormatter", version="1"))
22-
using JuliaFormatter
23-
format("."; verbose=true)
24-
shell: julia --color=yes {0}
25-
- name: Suggest formatting changes
26-
uses: reviewdog/action-suggester@v1
22+
version: '1'
23+
format_files: true
24+
# Fail on next step instead
25+
continue-on-error: ${{ github.event_name == 'pull_request' }}
26+
- uses: reviewdog/action-suggester@v1
2727
if: github.event_name == 'pull_request'
2828
with:
29-
tool_name: JuliaFormatter
30-
fail_on_error: true
29+
tool_name: Runic
30+
fail_level: warning

0 commit comments

Comments
 (0)