Skip to content

Commit

Permalink
A new install-quarto param (#12)
Browse files Browse the repository at this point in the history
Adds a new parameter to the action and pass it down into the
`r-lib/actions/setup-r-dependencies@v2`

This is needed as install quarto does not work for all machines in rhub
workflows
  • Loading branch information
pawelru authored Oct 10, 2024
1 parent 47bac66 commit f463611
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ Insights Engineering

_Default_: `""`

* `install-quarto`:

_Description_: Passed to `r-lib/actions/setup-r-dependencies`.

_Required_: `false`

_Default_: `auto`

* `needs`:

_Description_: Passed to `r-lib/actions/setup-r-dependencies`. The value will be amended by `DepsBranch` and `DepsDev` values.
Expand Down
6 changes: 6 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ inputs:
description: Passed to `r-lib/actions/setup-r-dependencies`.
required: false
default: ""
install-quarto:
description: Passed to `r-lib/actions/setup-r-dependencies`.
required: false
default: "auto"
needs:
description: |
Passed to `r-lib/actions/setup-r-dependencies`.
Expand Down Expand Up @@ -107,6 +111,7 @@ runs:
any::desc
any::pkgcache
install-pandoc: false
install-quarto: false

- name: Set repositories
run: |
Expand Down Expand Up @@ -395,6 +400,7 @@ runs:
DepsBranch
DepsDev
dependencies: ${{ inputs.dependencies }}
install-quarto: ${{ inputs.install-quarto }}

- name: Restore DESCRIPTION
if: ${{ inputs.restore-description == 'true' }}
Expand Down

0 comments on commit f463611

Please sign in to comment.