Skip to content

Commit 0204404

Browse files
authored
Workflow propagations (#780)
1 parent 18e6655 commit 0204404

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
@@ -69,6 +69,9 @@ jobs:
6969
uses: insightsengineering/r.pkg.template/.github/workflows/test-coverage.yaml@main
7070
secrets:
7171
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
72+
with:
73+
additional-env-vars: |
74+
NOT_CRAN=true
7275
linter:
7376
if: github.event_name != 'push'
7477
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:
@@ -22,14 +39,29 @@ jobs:
2239
additional-env-vars: |
2340
PKG_SYSREQS_DRY_RUN=true
2441
branch-cleanup:
42+
if: >
43+
github.event_name == 'schedule' || (
44+
github.event_name == 'workflow_dispatch' &&
45+
inputs.chosen-workflow == 'branch-cleanup'
46+
)
2547
name: Branch Cleanup 🧹
2648
uses: insightsengineering/r.pkg.template/.github/workflows/branch-cleanup.yaml@main
2749
secrets:
2850
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
2951
revdepcheck:
52+
if: >
53+
github.event_name == 'schedule' || (
54+
github.event_name == 'workflow_dispatch' &&
55+
inputs.chosen-workflow == 'revdepcheck'
56+
)
3057
name: revdepcheck ↩️
3158
uses: insightsengineering/r.pkg.template/.github/workflows/revdepcheck.yaml@main
3259
rhub:
60+
if: >
61+
github.event_name == 'schedule' || (
62+
github.event_name == 'workflow_dispatch' &&
63+
inputs.chosen-workflow == 'rhub'
64+
)
3365
name: R-hub 🌐
3466
uses: insightsengineering/r.pkg.template/.github/workflows/rhub.yaml@main
3567
with:

0 commit comments

Comments
 (0)