Skip to content

Commit 07c88bc

Browse files
committed
Pin JuliaFormatter to v1 in workflow
1 parent 0c5eec2 commit 07c88bc

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

.github/workflows/Format.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Format
22

33
on:
4+
push:
5+
branches:
6+
- main
47
pull_request:
58

69
concurrency:
@@ -12,20 +15,7 @@ concurrency:
1215
jobs:
1316
format:
1417
runs-on: ubuntu-latest
18+
1519
steps:
16-
- uses: actions/checkout@v2
17-
- uses: julia-actions/setup-julia@latest
18-
with:
19-
version: 1
2020
- name: Format code
21-
run: |
22-
using Pkg
23-
Pkg.add(; name="JuliaFormatter", uuid="98e50ef6-434e-11e9-1051-2b60c6c9e899")
24-
using JuliaFormatter
25-
format("."; verbose=true)
26-
shell: julia --color=yes {0}
27-
- uses: reviewdog/action-suggester@v1
28-
if: github.event_name == 'pull_request'
29-
with:
30-
tool_name: JuliaFormatter
31-
fail_on_error: true
21+
uses: TuringLang/actions/Format@main

0 commit comments

Comments
 (0)