Skip to content

spanishTDTscrape

spanishTDTscrape #843

Workflow file for this run

# Hourly scraping
name: spanishTDTscrape
# Controls when the action will run.
on:
schedule:
- cron: '30 10 * * *'
jobs:
autoscrape:
# The type of runner that the job will run on
runs-on: macos-latest
# Load repo and install R
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v2
# Set-up R
- name: Install packages
run: |
R -e 'install.packages("tidyverse")'
R -e 'install.packages("lubridate")'
R -e 'install.packages("rvest")'
# Run R script
- name: Scrape
run: Rscript film_and_time_scraper.R
# Add new files in data folder, commit along with other modified files, push
- name: Commit files
run: |
git config --local user.name actions-user
git config --local user.email "actions@github.com"
git add data/*
git commit -am "GH ACTION Headlines $(date)"
git push origin main
env:
REPO_KEY: ${{secrets.GITHUB_TOKEN}}
username: github-actions