File tree 2 files changed +13
-20
lines changed 2 files changed +13
-20
lines changed Original file line number Diff line number Diff line change 1
1
name : TagBot
2
2
on :
3
- schedule :
4
- - cron : 0 * * * *
3
+ issue_comment :
4
+ types :
5
+ - created
6
+ workflow_dispatch :
5
7
jobs :
6
8
TagBot :
9
+ if : github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
7
10
runs-on : ubuntu-latest
8
11
steps :
9
12
- uses : JuliaRegistries/TagBot@v1
10
13
with :
11
14
token : ${{ secrets.GITHUB_TOKEN }}
12
15
ssh : ${{ secrets.DOCUMENTER_KEY }}
13
-
Original file line number Diff line number Diff line change 1
1
name : format-pr
2
-
3
2
on :
4
3
schedule :
5
4
- cron : ' 0 0 * * *'
6
5
jobs :
7
6
build :
8
- runs-on : ${{ matrix.os }}
9
- strategy :
10
- matrix :
11
- julia-version : [1.8]
12
- julia-arch : [x86]
13
- os : [ubuntu-latest]
7
+ runs-on : ubuntu-latest
14
8
steps :
15
- - uses : julia-actions/setup-julia@latest
16
- with :
17
- version : ${{ matrix.julia-version }}
18
-
19
9
- uses : actions/checkout@v2
20
10
- name : Install JuliaFormatter and format
21
11
run : |
22
- julia -e 'import Pkg; Pkg.add("JuliaFormatter")'
12
+ julia -e 'using Pkg; Pkg.add(PackageSpec(name= "JuliaFormatter") )'
23
13
julia -e 'using JuliaFormatter; format(".")'
24
14
# https://github.com/marketplace/actions/create-pull-request
15
+ # https://github.com/peter-evans/create-pull-request#reference-example
25
16
- name : Create Pull Request
26
- uses : peter-evans/create-pull-request@v2
27
- env :
28
- ACTIONS_ALLOW_UNSECURE_COMMANDS : true
17
+ id : cpr
18
+ uses : peter-evans/create-pull-request@v3
29
19
with :
30
20
token : ${{ secrets.GITHUB_TOKEN }}
31
21
commit-message : Format .jl files
32
22
title : ' Automatic JuliaFormatter.jl run'
33
23
branch : auto-juliaformatter-pr
24
+ delete-branch : true
34
25
labels : formatting, automated pr, no changelog
35
26
- name : Check outputs
36
27
run : |
37
- echo ' Pull Request Number - ${{ env.PULL_REQUEST_NUMBER }}'
38
- 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