-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (47 loc) · 1.33 KB
/
README-check.yaml
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
# Workflow derived from https://github.com/quarto-dev/quarto-actions/tree/v2/render
# Ensures that README.md is up to date with README.qmd
# by rendering, committing, and pushing changes to PR
on:
pull_request:
paths:
- 'README.qmd'
name: README-check
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: write
pull-requests: write
jobs:
README-check:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
version: 1.6.1
- name: Install dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
packages:
any::devtools
any::dplyr
any::knitr
any::readr
any::rmarkdown
any::tibble
extra-packages:
local::.
- name: Render README
uses: quarto-dev/quarto-actions/render@v2
with:
path: README.qmd
- name: Update pull request
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: GHA - render `README` from `README.qmd`
file_pattern: 'README.md'