Skip to content

Commit aacbcef

Browse files
authored
feat: Add package updater flag to pkgdown workflow (#281)
Adds the package updater feature flag to the pkgdown workflow.
1 parent 4e6fd0f commit aacbcef

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/build-check-install.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ jobs:
429429
if: >-
430430
inputs.update-r-packages == true
431431
run: |
432-
update.packages()
432+
update.packages(ask=FALSE)
433433
shell: Rscript {0}
434434

435435
- name: Run Staged dependencies 🎦

.github/workflows/pkgdown.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ on:
7676
required: false
7777
default: main
7878
type: string
79+
update-r-packages:
80+
description: |
81+
Whether R packages installed in the container should be updated to their latest version from CRAN/BioC.
82+
required: false
83+
type: boolean
84+
default: false
7985
sd-direction:
8086
description: The direction to use to install staged dependencies. Choose between 'upstream', 'downstream' and 'all'
8187
required: false
@@ -215,6 +221,13 @@ jobs:
215221
key: sd-${{ runner.os }}-${{ github.event.repository.name }}
216222
path: ~/.staged.dependencies
217223

224+
- name: Update R packages 🗓️
225+
if: >-
226+
inputs.update-r-packages == true
227+
run: |
228+
update.packages(ask=FALSE)
229+
shell: Rscript {0}
230+
218231
- name: Run Staged dependencies 🎦
219232
if: >-
220233
inputs.deps-installation-method == 'staged-dependencies'

0 commit comments

Comments
 (0)