Skip to content

Commit e8b5560

Browse files
committed
update format action
1 parent c520102 commit e8b5560

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

.github/workflows/Format.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches:
66
- main
77
pull_request:
8+
merge_group:
9+
types: [checks_requested]
810

911
concurrency:
1012
# Skip intermediate builds: always.
@@ -15,20 +17,7 @@ concurrency:
1517
jobs:
1618
format:
1719
runs-on: ubuntu-latest
20+
1821
steps:
19-
- uses: actions/checkout@v4
20-
- uses: julia-actions/setup-julia@v2
21-
with:
22-
version: 1
2322
- name: Format code
24-
run: |
25-
using Pkg
26-
Pkg.add(; name="JuliaFormatter", uuid="98e50ef6-434e-11e9-1051-2b60c6c9e899")
27-
using JuliaFormatter
28-
format("."; verbose=true)
29-
shell: julia --color=yes {0}
30-
- uses: reviewdog/action-suggester@v1
31-
if: github.event_name == 'pull_request'
32-
with:
33-
tool_name: JuliaFormatter
34-
fail_on_error: true
23+
uses: TuringLang/actions/Format@main

0 commit comments

Comments
 (0)