generated from pharmaverse/admiraltemplate
-
Notifications
You must be signed in to change notification settings - Fork 4
78 lines (74 loc) · 2.33 KB
/
cran-status.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
---
name: CRAN Status
on:
workflow_dispatch:
inputs:
issue-assignees:
description: |
Whom should the issue be assigned to if errors are
encountered in the CRAN status checks?
This is a comma-separated string of GitHub usernames.
If undefined or empty, no assignments are made.
default: ""
required: false
type: string
statuses:
description: |
Create an issue if one or more of the following
statuses are reported on the check report.
This is a comma-separated string of statuses.
Allowed statuses are 'NOTE', 'WARN', and 'ERROR'
default: "ERROR"
required: false
type: string
path:
description: |
Path to the R package root, if the package is not at the
top level of the repository.
default: "."
required: false
type: string
workflow_call:
inputs:
issue-assignees:
description: |
Whom should the issue be assigned to if errors are
encountered in the CRAN status checks?
This is a comma-separated string of GitHub usernames.
If undefined or empty, no assignments are made.
default: ""
required: false
type: string
statuses:
description: |
Create an issue if one or more of the following
statuses are reported on the check report.
This is a comma-separated string of statuses.
Allowed statuses are 'NOTE', 'WARN', and 'ERROR'
default: "ERROR"
required: false
type: string
path:
description: |
Path to the R package root, if the package is not at the
top level of the repository.
default: "."
required: false
type: string
permissions: write-all
concurrency:
group: cran-status-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
cran-status:
name: Check Status
runs-on: ubuntu-latest
container:
image: rocker/tidyverse:latest
steps:
- name: Run CRAN Status Action
uses: insightsengineering/cran-status-action@v1
with:
statuses: "${{ inputs.statuses }}"
issue-assignees: "${{ inputs.issue-assignees }}"
path: "${{ inputs.path }}"