Skip to content

Atualizar cursos

Atualizar cursos #2

# This workflow deploys the app on push or pull request
name: Atualizar cursos
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
schedule:
- cron: "0 3 * * *"
workflow_dispatch:
jobs:
atualizar:
name: Atualizar cursos
runs-on: ubuntu-latest
steps:
- name: Set up R
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true
- name: Install packages
uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: |
any::dplyr
any::tidyr
any::forcats
any::stringr
any::purrr
any::googlesheets4
any::glue
- name: Check out repository
uses: actions/checkout@v3
- name: Run script
run: |
Rscript R/atualizar_portfolio.R
- name: Commit
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add . || echo "No changes to commit"
git commit -m 'updating matches' || echo "No changes to commit"
git push origin || echo "No changes to commit"