-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (55 loc) · 1.63 KB
/
checks.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: checks
on:
workflow_dispatch:
schedule:
- cron: '0 * * * *'
jobs:
checks:
runs-on: macOS-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
steps:
- name: Install R.
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- name: Install helper R package.
run: |
install.packages(
pkgs = "multiverse.internals",
repos = c("https://cloud.r-project.org", "https://community.r-multiverse.org"),
type = "binary"
)
shell: Rscript {0}
- name: Check out the universe.
uses: actions/checkout@v4
- name: Record versions.
run: |
multiverse.internals::record_versions(
versions = "versions.json",
repo = "https://production.r-multiverse.org"
)
shell: Rscript {0}
- name: Record issues.
run: |
multiverse.internals::record_issues(
repo = "https://production.r-multiverse.org",
versions = "versions.json",
output = "issues"
)
shell: Rscript {0}
- name: Commit and push changes.
run: |
git add versions.json
if [ -d issues ]; then
git add issues
fi
if git diff --quiet && git diff --staged --quiet; then
echo "No changes to commit."
else
git config --global user.name github-actions
git config --global user.email actions@github.com
git commit -m "Update issues"
git push -u origin main
fi