File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 11name : ' Format'
22
33on :
4- pull_request :
4+ pull_request_target :
55 paths : ['**/*.jl']
66 types : [opened, synchronize, reopened, ready_for_review]
77
@@ -11,7 +11,7 @@ permissions:
1111 # needed for julia-actions/cache to delete old caches
1212 actions : write
1313
14- # needed for parkerbxyz/suggest-changes
14+ # needed for googleapis/code-suggester
1515 pull-requests : write
1616
1717jobs :
2121 steps :
2222 - uses : actions/checkout@v4
2323 with :
24+ ref : ${{github.event.pull_request.head.ref}}
25+ repository : ${{github.event.pull_request.head.repo.full_name}}
2426 fetch-depth : 0
2527
2628 - name : Setup Julia
@@ -35,15 +37,19 @@ jobs:
3537 julia --project=@runic -e 'using Pkg; Pkg.add("Runic")'
3638 curl -o git-runic https://raw.githubusercontent.com/fredrikekre/Runic.jl/master/bin/git-runic
3739 chmod +x git-runic
40+ sudo mv git-runic /usr/local/bin
3841
3942 - name : Run Runic
4043 run : |
4144 set +e
42- ./ git- runic origin/main
45+ git runic origin/main
4346 [ $? -eq 2 ] && exit 1 || exit 0
4447
4548 - name : Suggest changes
46- uses : parkerbxyz/suggest-changes@v2
49+ uses : googleapis/code-suggester@v2
50+ env :
51+ ACCESS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4752 with :
48- comment : ' Runic suggested the following formatting changes.'
49- event : ' COMMENT'
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