-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (30 loc) · 1.13 KB
/
01-covid-equity.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
name: COVID-19 Equity report
on:
push:
branches: [ main ]
schedule:
- cron: '0 0 * * *' # This will happen once a day at 00 hours.
jobs:
build:
runs-on: Ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Container
run: docker pull rocker/tidyverse:4.1.0
##################################################################
# YOU ONLY NEED TO CHANGE THIS BIT -------------------------------
- name: Render
run: |
cd 01-covid-equity
docker run -v$(pwd):/home/report -w/home/report \
rocker/tidyverse:4.1.0 \
Rscript -e 'rmarkdown::render("README.Rmd")'
##################################################################
- name: Commit results
run: |
cd 01-covid-equity
git add README_files/figure-gfm/*
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
git commit -a -m 'Updating the COVID-19 equity report' || echo Nothing has changed
git push origin || echo "No changes to commit"