diff --git a/.github/workflows/rhub.yaml b/.github/workflows/rhub.yaml index 90ade13d..d8313ba7 100644 --- a/.github/workflows/rhub.yaml +++ b/.github/workflows/rhub.yaml @@ -52,6 +52,10 @@ jobs: steps: - uses: r-hub/actions/checkout@v1 + - name: Add additional r-universe repository + run: | + # Add additional r-universe repository + echo 'options(repos = c(getOption("repos"), "https://geocompr.r-universe.dev"))' >> ~/.Rprofile - uses: r-hub/actions/platform-info@v1 with: token: ${{ secrets.RHUB_TOKEN }} @@ -84,8 +88,7 @@ jobs: - 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} + echo 'options(repos = c(getOption("repos"), "https://geocompr.r-universe.dev"))' >> ~/.Rprofile - uses: r-hub/actions/platform-info@v1 with: token: ${{ secrets.RHUB_TOKEN }}