Skip to content

Commit

Permalink
Add parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Apr 7, 2024
1 parent a791196 commit 0fae768
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ on:
package_url:
description: 'URL to a source package tarball'
required: true
which:
type: choice
description: Which reverse dependencies to check
options:
- strong
- most

jobs:
recheck:
Expand All @@ -19,6 +25,7 @@ jobs:
uses: r-universe-org/recheck@HEAD
with:
package: ${{ github.event.inputs.package_url }}
which: ${{ github.event.inputs.which }}
- uses: actions/upload-artifact@v4
with:
name: checklogs
Expand Down
6 changes: 4 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ inputs:
package:
description: 'Path or URL to source package tarball'
required: true
universe:
description: 'Which universe to check in'
which:
description: 'Should be strong or most'
default: strong
required: false
runs:
using: 'docker'
image: 'docker://ghcr.io/r-universe-org/recheck'
args:
- ${{ inputs.package }}
- ${{ inputs.which }}
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ if [ -z "$1" ]; then
echo "You need to pass a package tarball path or URL"
exit 1
fi
echo "Reverse dependency check for: ${1}"
Rscript -e "recheck::recheck('${1}')"
echo "Recheck for: ${1} with ${2} reverse dependencies"
Rscript -e "recheck::recheck('${1}', '${2}')"
echo "Action complete!"

0 comments on commit 0fae768

Please sign in to comment.