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] 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 != ''