Skip to content

Commit c3888ff

Browse files
committed
Update Format workflow to match rest of TuringLang
1 parent dcb949e commit c3888ff

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

.github/workflows/Format.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
name: Format suggestions
1+
name: Format
22

33
on:
4+
push:
5+
branches:
6+
- main
47
pull_request:
5-
8+
69
concurrency:
710
# Skip intermediate builds: always.
811
# Cancel intermediate builds: only if it is a pull request build.
@@ -12,15 +15,7 @@ concurrency:
1215
jobs:
1316
format:
1417
runs-on: ubuntu-latest
18+
1519
steps:
16-
- uses: actions/checkout@v4
17-
- uses: julia-actions/setup-julia@v2
18-
with:
19-
version: 1
20-
- run: |
21-
julia -e 'using Pkg; Pkg.add("JuliaFormatter")'
22-
julia -e 'using JuliaFormatter; format("."; verbose=true)'
23-
- uses: reviewdog/action-suggester@v1
24-
with:
25-
tool_name: JuliaFormatter
26-
fail_on_error: true
20+
- name: Format code
21+
uses: TuringLang/actions/Format@main

0 commit comments

Comments
 (0)