Atualizar cursos #134
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Atualizar cursos | |
on: | |
schedule: | |
- cron: "0 3 * * *" | |
workflow_dispatch: | |
jobs: | |
atualizar: | |
name: Atualizar cursos | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
cache-version: 2 | |
packages: | | |
any::dplyr | |
any::tidyr | |
any::forcats | |
any::stringr | |
any::purrr | |
any::googlesheets4 | |
any::glue | |
- 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" |