Skip to content

Commit

Permalink
GHA rhub workflow: change add. repo approach in other platforms *
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
florisvdh committed Sep 17, 2024
1 parent 1d2a153 commit 702358e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/rhub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ jobs:
with:
job-config: ${{ matrix.config.job-config }}
token: ${{ secrets.RHUB_TOKEN }}
extra-repositories: https://geocompr.r-universe.dev
- name: Add additional r-universe repository
run: |
# Add additional r-universe repository
options(repos = c(getOption("repos"), "https://geocompr.r-universe.dev"))
shell: Rscript {0}
- uses: r-hub/actions/platform-info@v1
with:
token: ${{ secrets.RHUB_TOKEN }}
Expand Down

0 comments on commit 702358e

Please sign in to comment.