From cf9ba1fd091dcede9dc7e4409650487045893492 Mon Sep 17 00:00:00 2001 From: Franciszek Walkowiak Date: Thu, 27 Jun 2024 12:47:37 +0200 Subject: [PATCH] Add inputs --- .github/workflows/rhub.yaml | 35 +++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/.github/workflows/rhub.yaml b/.github/workflows/rhub.yaml index 6db97913..b8fdb8bb 100644 --- a/.github/workflows/rhub.yaml +++ b/.github/workflows/rhub.yaml @@ -12,10 +12,15 @@ on: # These platforms correspond roughly to CRAN package checks. # More information: https://github.com/insightsengineering/idr-tasks/issues/781 # default: 'ubuntu-clang,ubuntu-gcc12,gcc13,windows,ubuntu-next,ubuntu-release,macos-arm64,macos,windows' - default: 'ubuntu-next,ubuntu-release' + default: 'ubuntu-next,ubuntu-release,windows,macos' + lookup-refs: + description: | + List of package references to be used for the feature branch. + Multiple entries in new lines or separated by commas. + required: false + default: "" jobs: - setup: runs-on: ubuntu-latest outputs: @@ -49,12 +54,15 @@ jobs: - name: Setup R dependencies uses: insightsengineering/setup-r-dependencies@initialize-actions + with: + lookup-refs: ${{ inputs.lookup-refs }} + skip-install: true - # - uses: r-hub/actions/setup-deps@v1 - # with: - # token: ${{ secrets.RHUB_TOKEN }} - # job-config: ${{ matrix.config.job-config }} - # needs: DepsDev,DepsBranch + - uses: r-hub/actions/setup-deps@v1 + with: + token: ${{ secrets.RHUB_TOKEN }} + job-config: ${{ matrix.config.job-config }} + needs: DepsDev,DepsBranch - uses: r-hub/actions/run-check@v1 with: @@ -84,12 +92,15 @@ jobs: - name: Setup R dependencies uses: insightsengineering/setup-r-dependencies@initialize-actions + with: + lookup-refs: ${{ inputs.lookup-refs }} + skip-install: true - # - uses: r-hub/actions/setup-deps@v1 - # with: - # job-config: ${{ matrix.config.job-config }} - # token: ${{ secrets.RHUB_TOKEN }} - # needs: DepsDev,DepsBranch + - uses: r-hub/actions/setup-deps@v1 + with: + job-config: ${{ matrix.config.job-config }} + token: ${{ secrets.RHUB_TOKEN }} + needs: DepsDev,DepsBranch - uses: r-hub/actions/run-check@v1 with: