Skip to content

Commit 8b7c571

Browse files
committed
Use TuringLang/actions/Format (i.e. pin JuliaFormatter to v1)
1 parent fc32e10 commit 8b7c571

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

.github/workflows/Format.yml

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,6 @@ jobs:
1818
format:
1919
runs-on: ubuntu-latest
2020

21-
permissions:
22-
contents: read
23-
checks: write
24-
issues: write
25-
pull-requests: write
26-
2721
steps:
28-
- uses: actions/checkout@v4
29-
- uses: julia-actions/setup-julia@latest
30-
with:
31-
version: 1
3222
- name: Format code
33-
run: |
34-
using Pkg
35-
Pkg.add(; name="JuliaFormatter", uuid="98e50ef6-434e-11e9-1051-2b60c6c9e899")
36-
using JuliaFormatter
37-
format("."; verbose=true)
38-
shell: julia --color=yes {0}
39-
- uses: reviewdog/action-suggester@v1
40-
if: github.event_name == 'pull_request'
41-
with:
42-
tool_name: JuliaFormatter
43-
fail_on_error: true
23+
uses: TuringLang/actions/Format@main

0 commit comments

Comments
 (0)