Skip to content

Commit d3eb94e

Browse files
authored
feat: allow configuring error-on for rcmdcheck (#29)
Useful if you want CI to fail on NOTEs
1 parent f56ca7e commit d3eb94e

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/check_current_version.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ on:
1717
required: false
1818
type: boolean
1919
default: false
20+
error-on:
21+
description: 'What type of result should cause a build error?'
22+
required: false
23+
type: string
24+
default: '"warning"'
2025
permissions:
2126
contents: read
2227
jobs:
@@ -40,6 +45,7 @@ jobs:
4045
r: oldrel-1
4146
env:
4247
R_KEEP_PKG_SOURCE: true
48+
ERROR_ON_DEFAULT: '"warning"'
4349
steps:
4450
- uses: actions/checkout@v4
4551
- name: Package specific setup
@@ -58,3 +64,4 @@ jobs:
5864
- uses: r-lib/actions/check-r-package@v2
5965
with:
6066
upload-snapshots: true
67+
error-on: '${{ inputs.error-on || env.ERROR_ON_DEFAULT }}'

.github/workflows/check_nn_versions.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ on:
1717
required: false
1818
type: boolean
1919
default: false
20+
error-on:
21+
description: 'What type of result should cause a build error?'
22+
required: false
23+
type: string
24+
default: '"warning"'
2025
permissions:
2126
contents: read
2227
jobs:
@@ -37,6 +42,7 @@ jobs:
3742
r: 4.4.1
3843
env:
3944
R_KEEP_PKG_SOURCE: 'yes'
45+
ERROR_ON_DEFAULT: '"warning"'
4046
steps:
4147
- uses: actions/checkout@v4
4248
- name: Package specific setup
@@ -55,3 +61,4 @@ jobs:
5561
- uses: r-lib/actions/check-r-package@v2
5662
with:
5763
upload-snapshots: true
64+
error-on: '${{ inputs.error-on || env.ERROR_ON_DEFAULT }}'

0 commit comments

Comments
 (0)