File tree Expand file tree Collapse file tree 2 files changed +51
-1
lines changed Expand file tree Collapse file tree 2 files changed +51
-1
lines changed Original file line number Diff line number Diff line change 1+ name : ' Format'
2+
3+ on :
4+ pull_request :
5+ paths : ['**/*.jl']
6+ types : [opened, synchronize, reopened, ready_for_review]
7+
8+ permissions :
9+ contents : read
10+
11+ # needed for julia-actions/cache to delete old caches
12+ actions : write
13+
14+ # needed for parkerbxyz/suggest-changes
15+ pull-requests : write
16+
17+ jobs :
18+ runic :
19+ runs-on : ubuntu-latest
20+ if : github.event.pull_request.draft == false
21+ steps :
22+ - uses : actions/checkout@v4
23+ with :
24+ fetch-depth : 0
25+
26+ - name : Setup Julia
27+ uses : julia-actions/setup-julia@v2
28+ with :
29+ version : ' 1'
30+ arch : ' x64'
31+ - uses : julia-actions/cache@v2
32+
33+ - name : Install Runic
34+ run : |
35+ julia --project=@runic -e 'using Pkg; Pkg.add("Runic")'
36+ curl -o git-runic https://raw.githubusercontent.com/fredrikekre/Runic.jl/master/bin/git-runic
37+ chmod +x git-runic
38+
39+ - name : Run Runic
40+ run : |
41+ set +e
42+ ./git-runic origin/master
43+ [ $? -eq 2 ] && exit 1 || exit 0
44+
45+ - name : Suggest changes
46+ uses : parkerbxyz/suggest-changes@v1
47+ with :
48+ comment : ' Runic suggested the following formatting changes.'
49+ event : ' COMMENT'
50+
Original file line number Diff line number Diff line change 1- name : CI
1+ name : Test
22
33on :
44 push :
You can’t perform that action at this time.
0 commit comments