Skip to content

Recuperar registros zenodo #81

Recuperar registros zenodo

Recuperar registros zenodo #81

Workflow file for this run

name: Recuperar registros zenodo
on:
schedule:
# Actualización semanal de totales
- cron: '0 20 * * 5'
# Cálculo anual solo el 30/11
- cron: '0 20 30 11 *'
workflow_dispatch:
jobs:
Recuperar-registros-zenodo:
name: Recuperar registros zenodo
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.TOKEN_USUARIO_JESI }}
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.AUTENTICACION_NO_INTERACTIVA }}
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- name: Install system dependencies
run: sudo apt-get install -y libcurl4-openssl-dev libsodium-dev librdf0-dev libsecret-1-dev
shell: bash
- name: Install CRAN packages
run: Rscript -e 'install.packages(c("googlesheets4", "lubridate"))'
- name: Install remotes
run: |
Rscript -e "install.packages('remotes')"
- name: Install zen4R
run: |
Rscript -e "remotes::install_github('eblondel/zen4R', dependencies = T)"
- name: Run zenodo-dator.R script
run: |
source('R/zenodo-datos.R')
shell: Rscript {0}