Skip to content

Commit c04219b

Browse files
authored
1 parent afea961 commit c04219b

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

.github/workflows/check.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ jobs:
6767
uses: insightsengineering/r.pkg.template/.github/workflows/test-coverage.yaml@main
6868
secrets:
6969
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
70+
with:
71+
additional-env-vars: |
72+
NOT_CRAN=true
7073
linter:
7174
if: github.event_name != 'push'
7275
name: SuperLinter 🦸‍♀️

.github/workflows/release.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ jobs:
5252
uses: insightsengineering/r.pkg.template/.github/workflows/test-coverage.yaml@main
5353
secrets:
5454
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
55+
with:
56+
additional-env-vars: |
57+
NOT_CRAN=true
5558
wasm:
5659
name: Build WASM packages 🧑‍🏭
5760
needs: release

.github/workflows/scheduled.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,26 @@ on:
55
schedule:
66
- cron: '45 3 * * 0'
77
workflow_dispatch:
8+
inputs:
9+
chosen-workflow:
10+
description: |
11+
Select which workflow you'd like to run
12+
required: true
13+
type: choice
14+
default: rhub
15+
options:
16+
- rhub
17+
- dependency-test
18+
- branch-cleanup
19+
- revdepcheck
820

921
jobs:
1022
dependency-test:
23+
if: >
24+
github.event_name == 'schedule' || (
25+
github.event_name == 'workflow_dispatch' &&
26+
inputs.chosen-workflow == 'dependency-test'
27+
)
1128
strategy:
1229
fail-fast: false
1330
matrix:
@@ -23,13 +40,28 @@ jobs:
2340
additional-env-vars: |
2441
PKG_SYSREQS_DRY_RUN=true
2542
branch-cleanup:
43+
if: >
44+
github.event_name == 'schedule' || (
45+
github.event_name == 'workflow_dispatch' &&
46+
inputs.chosen-workflow == 'branch-cleanup'
47+
)
2648
name: Branch Cleanup 🧹
2749
uses: insightsengineering/r.pkg.template/.github/workflows/branch-cleanup.yaml@main
2850
secrets:
2951
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
3052
revdepcheck:
53+
if: >
54+
github.event_name == 'schedule' || (
55+
github.event_name == 'workflow_dispatch' &&
56+
inputs.chosen-workflow == 'revdepcheck'
57+
)
3158
name: revdepcheck ↩️
3259
uses: insightsengineering/r.pkg.template/.github/workflows/revdepcheck.yaml@main
3360
rhub:
61+
if: >
62+
github.event_name == 'schedule' || (
63+
github.event_name == 'workflow_dispatch' &&
64+
inputs.chosen-workflow == 'rhub'
65+
)
3466
name: R-hub 🌐
3567
uses: insightsengineering/r.pkg.template/.github/workflows/rhub.yaml@main

0 commit comments

Comments
 (0)