-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (33 loc) · 971 Bytes
/
update.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
on:
schedule:
- cron: 0 0 * * *
name: Update pkgstats Results
jobs:
update-pkgstats-results:
runs-on: ubuntu-latest
permissions:
contents: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install R
uses: r-lib/actions/setup-r@v2
- name: Extra deps
run: |
sudo apt-get install -y autoconf automake git global libgit2-dev libglpk-dev
- name: ctags latest
if: runner.os == 'Linux'
run: |
git clone https://github.com/universal-ctags/ctags.git
cd ctags
./autogen.sh
./configure --prefix=/usr
make
sudo make install
- uses: r-lib/actions/setup-r-dependencies@v2
- name: Install this package
run: R CMD INSTALL .
- name: Call the function
run: Rscript -e "pkgstats::pkgstats_update()"