From 72d80197f5f58e4efdca0013e0fc8a08cd9317b0 Mon Sep 17 00:00:00 2001 From: Franciszek Walkowiak Date: Mon, 9 Sep 2024 13:29:59 +0200 Subject: [PATCH] fix: update repository-path input --- .github/workflows/bioccheck.yaml | 2 +- .github/workflows/build-check-install.yaml | 12 ++++++++++-- .github/workflows/pkgdown.yaml | 8 +++++++- .github/workflows/roxygen.yaml | 8 +++++++- .github/workflows/test-coverage.yaml | 8 +++++++- 5 files changed, 32 insertions(+), 6 deletions(-) diff --git a/.github/workflows/bioccheck.yaml b/.github/workflows/bioccheck.yaml index 0a59282a..345226c0 100644 --- a/.github/workflows/bioccheck.yaml +++ b/.github/workflows/bioccheck.yaml @@ -162,7 +162,7 @@ jobs: with: lookup-refs: ${{ inputs.lookup-refs }} github-token: ${{ steps.github-token.outputs.token }} - repository-path: ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }} + repository-path: ${{ github.event.repository.name }} - name: Run BiocCheck ☣️ uses: insightsengineering/bioc-check-action@v1 diff --git a/.github/workflows/build-check-install.yaml b/.github/workflows/build-check-install.yaml index e309c631..2cd0320d 100644 --- a/.github/workflows/build-check-install.yaml +++ b/.github/workflows/build-check-install.yaml @@ -373,7 +373,9 @@ jobs: shell: bash - name: Restore SD cache 💰 - if: inputs.install-deps-from-package-repositories == '' + if: >- + inputs.install-deps-from-package-repositories == '' + && inputs.deps-installation-method == 'staged-dependencies' uses: actions/cache@v4 with: key: sd-${{ runner.os }}-${{ github.event.repository.name }} @@ -408,7 +410,13 @@ jobs: with: lookup-refs: ${{ inputs.lookup-refs }} github-token: ${{ steps.github-token.outputs.token }} - repository-path: ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }} + # Setting repository path to + # ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }} + # causes the following error: + # Error in `get_remote_types(refs)`: + # ! Cannot parse package: teal/. + # ℹ See `?pkgdepends::pkg_refs()` for supported package sources. + repository-path: ${{ github.event.repository.name }} - name: Install dependencies from package repositories 🗄️ if: inputs.install-deps-from-package-repositories != '' diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml index 3e4fab34..a5351a48 100644 --- a/.github/workflows/pkgdown.yaml +++ b/.github/workflows/pkgdown.yaml @@ -234,7 +234,13 @@ jobs: with: lookup-refs: ${{ inputs.lookup-refs }} github-token: ${{ steps.github-token.outputs.token }} - repository-path: ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }} + # Setting repository path to + # ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }} + # causes the following error: + # Error in `get_remote_types(refs)`: + # ! Cannot parse package: teal/. + # ℹ See `?pkgdepends::pkg_refs()` for supported package sources. + repository-path: ${{ github.event.repository.name }} - name: Install R package 🚧 run: | diff --git a/.github/workflows/roxygen.yaml b/.github/workflows/roxygen.yaml index 7d1d933c..c759e8c2 100644 --- a/.github/workflows/roxygen.yaml +++ b/.github/workflows/roxygen.yaml @@ -149,7 +149,13 @@ jobs: with: lookup-refs: ${{ inputs.lookup-refs }} github-token: ${{ steps.github-token.outputs.token }} - repository-path: ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }} + # Setting repository path to + # ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }} + # causes the following error: + # Error in `get_remote_types(refs)`: + # ! Cannot parse package: teal/. + # ℹ See `?pkgdepends::pkg_refs()` for supported package sources. + repository-path: ${{ github.event.repository.name }} - name: Generate man pages 📄 run: | diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index 24058269..bc479b77 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -247,7 +247,13 @@ jobs: with: lookup-refs: ${{ inputs.lookup-refs }} github-token: ${{ steps.github-token.outputs.token }} - repository-path: ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }} + # Setting repository path to + # ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }} + # causes the following error: + # Error in `get_remote_types(refs)`: + # ! Cannot parse package: teal/. + # ℹ See `?pkgdepends::pkg_refs()` for supported package sources. + repository-path: ${{ github.event.repository.name }} - name: Install R package 🚧 run: |