File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change 1
1
name : ' Format'
2
2
3
3
on :
4
- pull_request :
4
+ pull_request_target :
5
5
paths : ['**/*.jl']
6
6
types : [opened, synchronize, reopened, ready_for_review]
7
7
@@ -11,7 +11,7 @@ permissions:
11
11
# needed for julia-actions/cache to delete old caches
12
12
actions : write
13
13
14
- # needed for parkerbxyz/suggest-changes
14
+ # needed for googleapis/code-suggester
15
15
pull-requests : write
16
16
17
17
jobs :
21
21
steps :
22
22
- uses : actions/checkout@v4
23
23
with :
24
+ ref : ${{github.event.pull_request.head.ref}}
25
+ repository : ${{github.event.pull_request.head.repo.full_name}}
24
26
fetch-depth : 0
25
27
26
28
- name : Setup Julia
@@ -35,16 +37,19 @@ jobs:
35
37
julia --project=@runic -e 'using Pkg; Pkg.add("Runic")'
36
38
curl -o git-runic https://raw.githubusercontent.com/fredrikekre/Runic.jl/master/bin/git-runic
37
39
chmod +x git-runic
40
+ sudo mv git-runic /usr/local/bin
38
41
39
42
- name : Run Runic
40
43
run : |
41
44
set +e
42
- ./ git- runic origin/master
45
+ git runic origin/master
43
46
[ $? -eq 2 ] && exit 1 || exit 0
44
47
45
48
- name : Suggest changes
46
- uses : parkerbxyz/suggest-changes@v2
49
+ uses : googleapis/code-suggester@v2
50
+ env :
51
+ ACCESS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
47
52
with :
48
- comment : ' Runic suggested the following formatting changes. '
49
- event : ' COMMENT '
50
-
53
+ command : review
54
+ pull_number : ${{ github.event.pull_request.number }}
55
+ git_dir : ' . '
You can’t perform that action at this time.
0 commit comments