Skip to content

Commit e331523

Browse files
authored
use TuringLang/actions/Format (#847)
1 parent d1a98c6 commit e331523

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

.github/workflows/Format.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,7 @@ concurrency:
1717
jobs:
1818
format:
1919
runs-on: ubuntu-latest
20+
2021
steps:
21-
- uses: actions/checkout@v4
22-
- uses: julia-actions/setup-julia@v2
23-
with:
24-
version: 1
2522
- name: Format code
26-
run: |
27-
using Pkg
28-
Pkg.add(; name="JuliaFormatter", uuid="98e50ef6-434e-11e9-1051-2b60c6c9e899")
29-
using JuliaFormatter
30-
format("."; verbose=true)
31-
shell: julia --color=yes {0}
32-
- uses: reviewdog/action-suggester@v1
33-
if: github.event_name == 'pull_request'
34-
with:
35-
tool_name: JuliaFormatter
36-
fail_on_error: true
23+
uses: TuringLang/actions/Format@main

0 commit comments

Comments
 (0)