Update pkgstats Results #101
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()" |