Billboard charts scrape #473
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: Billboard charts scrape | |
on: | |
schedule: | |
- cron: '10 15 * * 2-5' | |
workflow_dispatch: | |
jobs: | |
render: | |
name: Billboard charts scrape | |
runs-on: macOS-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: r-lib/actions/setup-r@v2 | |
- name: Install dependencies | |
run: Rscript -e 'install.packages(c("rvest", "tidyverse", "lubridate", "here"))' | |
- name: Scrape the data | |
run: Rscript action_scrape_charts.R | |
- name: Commit results | |
run: | | |
git add -A | |
git commit -m 'At least one chart scraped and saved!' || echo "No changes to commit" | |
git push origin || echo "No changes to commit" |