Skip to content

Commit

Permalink
add in extra parameter to run
Browse files Browse the repository at this point in the history
  • Loading branch information
DyfanJones committed May 13, 2024
1 parent e03badb commit 14e8130
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/rhub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ on:
id:
description: 'Unique ID. You can leave this empty now.'
type: string

pkg:
description: "Paws package to run"
type: string
default: 'paws.storage'
jobs:

setup:
Expand Down Expand Up @@ -55,7 +58,7 @@ jobs:
steps:
- uses: r-hub/actions/checkout@v1
- name: Update Vendor Dependencies
run: make get-pkg
run: make PKG=${{ github.event.inputs.pkg }} get-pkg
- uses: r-hub/actions/platform-info@v1
with:
token: ${{ secrets.RHUB_TOKEN }}
Expand Down Expand Up @@ -84,7 +87,7 @@ jobs:
steps:
- uses: r-hub/actions/checkout@v1
- name: Update Vendor Dependencies
run: make get-pkg
run: make PKG=${{ github.event.inputs.pkg }} get-pkg
- uses: r-hub/actions/setup-r@v1
with:
job-config: ${{ matrix.config.job-config }}
Expand Down
6 changes: 1 addition & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
clear-down:
@echo "Clear down"
@rm -rf R man tests

get-pkg: clear-down
get-pkg:
@echo "Update project dependencies"
@git submodule init
@git submodule update --remote
Expand Down

0 comments on commit 14e8130

Please sign in to comment.