Skip to content

check_calendar_flow #291

check_calendar_flow

check_calendar_flow #291

on:
schedule:
- cron: "0 13 * * 1,2,3,4,5"
workflow_dispatch:
name: check_calendar_flow
jobs:
run-r-script:
runs-on: macos-latest
timeout-minutes: 30
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-pandoc@v2
- name: Install rmarkdown
run: Rscript -e 'install.packages("rmarkdown")'
- name: Install distill
run: Rscript -e 'install.packages("distill")'
- name: Install googlesheets4
run: Rscript -e 'install.packages("googlesheets4")'
- name: Install tidyverse
run: Rscript -e 'install.packages("tidyverse")'
- name: Install toastui
run: Rscript -e 'install.packages("toastui")'
- name: Correr script calendar
run: |
Rscript ".github/source/check_calendar_items.R"
- name: Commit results
run: |
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
git add -A
git commit -m "Actualizo eventos en calendario" || echo "No changes to commit"
git push origin || echo "No changes to commit"