Skip to content

Merge pull request #72 from ropensci-review-tools/dl #62

Merge pull request #72 from ropensci-review-tools/dl

Merge pull request #72 from ropensci-review-tools/dl #62

Workflow file for this run

on:
push:
branches:
- main
schedule:
- cron: 0 0 * * 1
name: Update pkgmatch data
jobs:
update-pkgmatch-data:
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
- uses: r-lib/actions/setup-r-dependencies@v2
- name: Install this package
run: R CMD INSTALL .
- name: ollama
run: |
curl -fsSL https://ollama.com/install.sh | sh
ollama serve &
sleep 5
ollama pull jina/jina-embeddings-v2-base-en
ollama pull ordis/jina-embeddings-v2-base-code
- name: Call the update function
run: Rscript -e "pkgmatch::pkgmatch_update_data(upload = TRUE)"