diff --git a/.github/workflows/revdepcheck.yaml b/.github/workflows/revdepcheck.yaml index 73f6eacb..4ac6f1a1 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: Install dependencies + 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 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 != ''