Skip to content

Build dependency cache on main branch #82

Build dependency cache on main branch

Build dependency cache on main branch #82

name: Build dependency cache on main branch
on:
workflow_dispatch:
push:
branches: [main, master]
paths:
- '.github/workflows/cache-hubval-deps.yml'
schedule:
- cron: "10 0 * * *"
jobs:
build-deps-cache-on-main:
if: github.repository_owner == 'european-modelling-hubs'
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
with:
install-r: false
use-public-rspm: true
- name: Update R
run: |
sudo apt-get update
- uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: Infectious-Disease-Modeling-Hubs/hubValidations, any::sessioninfo