Skip to content

Commit 702358e

Browse files
committed
GHA rhub workflow: change add. repo approach in other platforms *
I mistakenly assumed the setup-r action was the one from r-lib, but it's rhub's and that one doesn't have the extra_repositories setting. So replacing this with an options(repos =) statement.
1 parent 1d2a153 commit 702358e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/rhub.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,11 @@ jobs:
8181
with:
8282
job-config: ${{ matrix.config.job-config }}
8383
token: ${{ secrets.RHUB_TOKEN }}
84-
extra-repositories: https://geocompr.r-universe.dev
84+
- name: Add additional r-universe repository
85+
run: |
86+
# Add additional r-universe repository
87+
options(repos = c(getOption("repos"), "https://geocompr.r-universe.dev"))
88+
shell: Rscript {0}
8589
- uses: r-hub/actions/platform-info@v1
8690
with:
8791
token: ${{ secrets.RHUB_TOKEN }}

0 commit comments

Comments
 (0)