File tree Expand file tree Collapse file tree 1 file changed +1
-27
lines changed Expand file tree Collapse file tree 1 file changed +1
-27
lines changed Original file line number Diff line number Diff line change 1
1
name : Formatter
2
2
3
- # Modified from https://github.com/julia-actions/julia-format
4
3
on :
5
4
schedule :
6
5
- cron : ' 0 0 * * *'
7
6
workflow_dispatch :
8
7
9
8
jobs :
10
9
build :
11
- runs-on : ubuntu-latest
12
- steps :
13
- - uses : actions/checkout@v4
14
- - uses : julia-actions/setup-julia@latest
15
- - uses : julia-actions/cache@v2
16
- - uses : julia-actions/julia-buildpkg@latest
17
- - name : Install JuliaFormatter and format
18
- run : |
19
- julia -e 'import Pkg; Pkg.add("JuliaFormatter")'
20
- julia -e 'using JuliaFormatter; format(".", BlueStyle())'
21
- # https://github.com/marketplace/actions/create-pull-request
22
- # https://github.com/peter-evans/create-pull-request#reference-example
23
- - name : Create Pull Request
24
- id : cpr
25
- uses : peter-evans/create-pull-request@v7
26
- with :
27
- token : ${{ secrets.GITHUB_TOKEN }}
28
- commit-message : " :robot: Format .jl files"
29
- title : ' [AUTO] JuliaFormatter.jl run'
30
- branch : auto-juliaformatter-pr
31
- delete-branch : true
32
- labels : formatting, automated pr, no changelog
33
- - name : Check outputs
34
- run : |
35
- echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
36
- echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
10
+ uses : control-toolbox/CTActions/.github/workflows/formatter.yml@main
You can’t perform that action at this time.
0 commit comments