-
Notifications
You must be signed in to change notification settings - Fork 7
42 lines (34 loc) · 1.2 KB
/
build-readme.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
41
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
#
# See https://github.com/r-lib/actions/tree/master/examples#readme for
# additional example workflows available for the R community.
name: Compilar w docker
on:
push:
branches: [ master ]
schedule:
- cron: '0 0 * * *'
jobs:
build:
runs-on: Ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Container
run: docker pull uscbiostats/software-dev:latest
- name: Compilar
run: |
docker run -v$(pwd):/home/report -w/home/report uscbiostats/software-dev:latest \
Rscript -e 'rmarkdown::render("README.Rmd")'
./docker/print_warning.sh
- name: Commit results
run: |
git add README*
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "[email protected]"
git commit -a -m 'Re-build Rmarkdown files' || echo Nothing has changed
git push origin || echo "No changes to commit"