-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (36 loc) · 1.09 KB
/
scrape_flood_data.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# 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