-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathrender-estimate_infections_options.yaml
More file actions
63 lines (54 loc) · 1.8 KB
/
render-estimate_infections_options.yaml
File metadata and controls
63 lines (54 loc) · 1.8 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
paths:
- 'vignettes/estimate_infections_options.Rmd.orig'
branches: [main]
schedule:
- cron: '0 0 1 * *'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
name: render-estimate_infections_options
jobs:
EpiNow2:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v6
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
dependencies: NA
extra-packages: local::.
- name: Render vignette
run: |
setwd("vignettes")
knitr::knit(
"estimate_infections_options.Rmd.orig",
"estimate_infections_options.Rmd"
)
shell: Rscript {0}
- name: Upload vignette as an artifact
uses: actions/upload-artifact@v7
with:
name: vignettes
path: vignettes
- name: Create Pull Request
if: github.ref == 'refs/heads/main'
uses: peter-evans/create-pull-request@v8
with:
commit-message: "Automatic Vignette update"
title: "Update estimate_infections_options vignette"
body: "This is an automated pull request to update the estimate_infections_options vignette."
branch: "update-estimate_infections_options-${{ github.run_number }}"
labels: "documentation"
add-paths: |
vignettes
token: ${{ secrets.GITHUB_TOKEN }}