Skip to content

periodicos_ativos

periodicos_ativos #233

on:
schedule:
- cron: '0 12 * * *'
workflow_dispatch:
name: "periodicos_ativos"
jobs:
download:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.PAT_GITHUB }}
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
- name: Install dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::devtools
needs: devtools
- name: "Atualizar periodicos ativos"
run: Rscript data-raw/01-periodicos_ativos.R
- name: Commit results
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add inst/periodicos_ativos_SciELO.csv
git commit -m 'Update data' || echo "Update data"
git push origin || echo "Update data"