-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (39 loc) · 1.16 KB
/
review.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: review
on:
workflow_dispatch:
schedule:
- cron: '10 * * * *'
jobs:
review:
runs-on: macOS-latest
steps:
- name: Generate GitHub installation access token.
uses: actions/[email protected]
id: app-token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
- name: Install R.
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- name: Install helper R package.
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
run: |
install.packages(
pkgs = "multiverse.internals",
repos = c("https://cloud.r-project.org", "https://community.r-multiverse.org"),
type = "binary"
)
shell: Rscript {0}
- name: Review pull requests
env:
GITHUB_PAT: ${{ steps.app-token.outputs.token }}
run: |
multiverse.internals::review_pull_requests(
owner = "${{ github.repository_owner }}",
repo = "contributions"
)
shell: Rscript {0}