This repository was archived by the owner on May 6, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : format-pr
2-
32on :
43 schedule :
5- - cron : ' 0 * * * *'
4+ - cron : ' 0 0 * * *'
65jobs :
76 build :
8- runs-on : ${{ matrix.os }}
9- strategy :
10- matrix :
11- julia-version : [1.3.0]
12- julia-arch : [x86]
13- os : [ubuntu-latest]
7+ runs-on : ubuntu-latest
148 steps :
15- - uses : julia-actions/setup-julia@latest
16- with :
17- version : ${{ matrix.julia-version }}
18-
199 - uses : actions/checkout@v2
2010 - name : Install JuliaFormatter and format
2111 run : |
2212 julia -e 'import Pkg; Pkg.add("JuliaFormatter")'
23- julia -e 'using JuliaFormatter; format(".";verbose=true, always_for_in=true)'
24-
13+ julia -e 'using JuliaFormatter; format(".")'
2514 # https://github.com/marketplace/actions/create-pull-request
15+ # https://github.com/peter-evans/create-pull-request#reference-example
2616 - name : Create Pull Request
27- uses : peter-evans/create-pull-request@v2
17+ id : cpr
18+ uses : peter-evans/create-pull-request@v3
2819 with :
2920 token : ${{ secrets.GITHUB_TOKEN }}
3021 commit-message : Format .jl files
3122 title : ' Automatic JuliaFormatter.jl run'
3223 branch : auto-juliaformatter-pr
24+ delete-branch : true
3325 labels : formatting, automated pr, no changelog
3426 - name : Check outputs
3527 run : |
36- echo ' Pull Request Number - ${{ env.PULL_REQUEST_NUMBER }}'
37- echo ' Pull Request Number - ${{ steps.cpr.outputs.pr_number }}'
28+ echo " Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
29+ echo " Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
You can’t perform that action at this time.
0 commit comments