Skip to content

Commit

Permalink
use setup-r-deps in revdepcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelru committed Sep 23, 2024
1 parent 037472a commit 3ce2b07
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/revdepcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 != ''
Expand Down

0 comments on commit 3ce2b07

Please sign in to comment.