From 3ce2b075052520b88dee9c642e7699c21d256e56 Mon Sep 17 00:00:00 2001 From: Pawel Rucki <12943682+pawelru@users.noreply.github.com> Date: Mon, 23 Sep 2024 16:27:15 +0200 Subject: [PATCH 1/3] use setup-r-deps in revdepcheck --- .github/workflows/revdepcheck.yaml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/revdepcheck.yaml b/.github/workflows/revdepcheck.yaml index 73f6eacbf..441003caf 100644 --- a/.github/workflows/revdepcheck.yaml +++ b/.github/workflows/revdepcheck.yaml @@ -24,6 +24,12 @@ on: required: false default: "" type: string + lookup-refs: + description: | + Passed to setup-r-dependencies action. + required: false + default: "" + type: string jobs: revdepcheck: @@ -84,12 +90,19 @@ jobs: echo "gchat_webhook=${{ secrets.GCHAT_WEBHOOK }}" >> $GITHUB_ENV shell: bash + - name: Prepare DESCRIPTION file + uses: insightsengineering/setup-r-dependencies@v1 + with: + lookup-refs: ${{ inputs.lookup-refs }} + skip-desc-branch: true + github-token: ${{ steps.github-token.outputs.token }} + - name: revdepcheck 🔄 id: revdepcheck - uses: insightsengineering/r-revdepcheck-action@main + uses: insightsengineering/r-revdepcheck-action@fix_non_cran2 with: github-token: ${{ steps.github-token.outputs.token }} - additional-env-vars: ${{ inputs.additional-env-vars }} + additional-env-vars: ${{ inputs.additional-env-vars }} - name: GChat notification 🔔 if: (failure() || cancelled()) && steps.revdepcheck.outcome != 'success' && env.gchat_webhook != '' From d166a2a4f8e440a2a7620545e2903338b10ff006 Mon Sep 17 00:00:00 2001 From: Pawel Rucki <12943682+pawelru@users.noreply.github.com> Date: Tue, 1 Oct 2024 11:39:34 +0200 Subject: [PATCH 2/3] Update .github/workflows/revdepcheck.yaml Signed-off-by: Pawel Rucki <12943682+pawelru@users.noreply.github.com> --- .github/workflows/revdepcheck.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/revdepcheck.yaml b/.github/workflows/revdepcheck.yaml index 441003caf..f7f711450 100644 --- a/.github/workflows/revdepcheck.yaml +++ b/.github/workflows/revdepcheck.yaml @@ -90,7 +90,7 @@ jobs: echo "gchat_webhook=${{ secrets.GCHAT_WEBHOOK }}" >> $GITHUB_ENV shell: bash - - name: Prepare DESCRIPTION file + - name: Install dependencies uses: insightsengineering/setup-r-dependencies@v1 with: lookup-refs: ${{ inputs.lookup-refs }} From 6cad0e755504a7cba4dad8dd2717f79e8a18524b Mon Sep 17 00:00:00 2001 From: Pawel Rucki <12943682+pawelru@users.noreply.github.com> Date: Wed, 2 Oct 2024 14:32:07 +0200 Subject: [PATCH 3/3] Update .github/workflows/revdepcheck.yaml Signed-off-by: Pawel Rucki <12943682+pawelru@users.noreply.github.com> --- .github/workflows/revdepcheck.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/revdepcheck.yaml b/.github/workflows/revdepcheck.yaml index f7f711450..4ac6f1a1e 100644 --- a/.github/workflows/revdepcheck.yaml +++ b/.github/workflows/revdepcheck.yaml @@ -99,7 +99,7 @@ jobs: - name: revdepcheck 🔄 id: revdepcheck - uses: insightsengineering/r-revdepcheck-action@fix_non_cran2 + uses: insightsengineering/r-revdepcheck-action@main with: github-token: ${{ steps.github-token.outputs.token }} additional-env-vars: ${{ inputs.additional-env-vars }}