From e356adbb13659cbaec7f0609dd1630633ae20c21 Mon Sep 17 00:00:00 2001 From: walkowif <59475134+walkowif@users.noreply.github.com> Date: Mon, 16 Sep 2024 16:29:48 +0200 Subject: [PATCH] Workflow propagations (#206) Propagation of: * https://github.com/insightsengineering/idr-tasks/issues/804 * https://github.com/insightsengineering/idr-tasks/issues/810 --- .github/workflows/check.yaml | 3 +++ .github/workflows/release.yaml | 3 +++ .github/workflows/scheduled.yaml | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 6c76857df..8b216ef33 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -60,6 +60,9 @@ jobs: uses: insightsengineering/r.pkg.template/.github/workflows/test-coverage.yaml@main secrets: REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }} + with: + additional-env-vars: | + NOT_CRAN=true roxygen: name: Roxygen ๐Ÿ…พ uses: insightsengineering/r.pkg.template/.github/workflows/roxygen.yaml@main diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ffd6b68ef..13273d4a2 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -50,6 +50,9 @@ jobs: uses: insightsengineering/r.pkg.template/.github/workflows/test-coverage.yaml@main secrets: REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }} + with: + additional-env-vars: | + NOT_CRAN=true wasm: name: Build WASM packages ๐Ÿง‘โ€๐Ÿญ needs: release diff --git a/.github/workflows/scheduled.yaml b/.github/workflows/scheduled.yaml index 139ef79eb..5b532f030 100644 --- a/.github/workflows/scheduled.yaml +++ b/.github/workflows/scheduled.yaml @@ -5,9 +5,26 @@ on: schedule: - cron: '45 3 * * 0' workflow_dispatch: + inputs: + chosen-workflow: + description: | + Select which workflow you'd like to run + required: true + type: choice + default: rhub + options: + - rhub + - dependency-test + - branch-cleanup + - revdepcheck jobs: dependency-test: + if: > + github.event_name == 'schedule' || ( + github.event_name == 'workflow_dispatch' && + inputs.chosen-workflow == 'dependency-test' + ) strategy: fail-fast: false matrix: @@ -22,6 +39,11 @@ jobs: additional-env-vars: | PKG_SYSREQS_DRY_RUN=true branch-cleanup: + if: > + github.event_name == 'schedule' || ( + github.event_name == 'workflow_dispatch' && + inputs.chosen-workflow == 'branch-cleanup' + ) name: Branch Cleanup ๐Ÿงน uses: insightsengineering/r.pkg.template/.github/workflows/branch-cleanup.yaml@main secrets: @@ -34,9 +56,19 @@ jobs: with: issue-assignees: "ddsjoberg" revdepcheck: + if: > + github.event_name == 'schedule' || ( + github.event_name == 'workflow_dispatch' && + inputs.chosen-workflow == 'revdepcheck' + ) name: revdepcheck โ†ฉ๏ธ uses: insightsengineering/r.pkg.template/.github/workflows/revdepcheck.yaml@main rhub: + if: > + github.event_name == 'schedule' || ( + github.event_name == 'workflow_dispatch' && + inputs.chosen-workflow == 'rhub' + ) name: R-hub ๐ŸŒ uses: insightsengineering/r.pkg.template/.github/workflows/rhub.yaml@main with: