Skip to content

Scrape Oxford Flood Data #335

Scrape Oxford Flood Data

Scrape Oxford Flood Data #335

# This is a basic workflow to help you get started with Actions
name: Scrape Oxford Flood Data
on:
schedule:
- cron: '0 21 * * 0-6'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "cron"
cron:
# The type of runner that the job will run on
runs-on: macos-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
strategy:
matrix:
R: ['4.3.2']
name: R ${{ matrix.R }} sample
steps:
- uses: actions/checkout@v2
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.R }}
- name: Install dependencies
run: |
install.packages("dplyr")
shell: Rscript {0}
- name: Get flood_data
run: Rscript get_flood_data.R
- name: Commit and push changes
run: |
git config --global user.name "ben18785"
git config --global user.email "[email protected]"
git add -A
git commit -m "Added new day of data"
git push