From b9163cda7872c26ef21b83c3f83b3940b5ca6a46 Mon Sep 17 00:00:00 2001 From: Franciszek Walkowiak Date: Tue, 23 Apr 2024 11:21:27 +0200 Subject: [PATCH 01/11] Update --- .github/workflows/build-check-install.yaml | 2 +- .github/workflows/roxygen.yaml | 2 +- .github/workflows/test-coverage.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-check-install.yaml b/.github/workflows/build-check-install.yaml index 6a53c524..f15b4e5d 100644 --- a/.github/workflows/build-check-install.yaml +++ b/.github/workflows/build-check-install.yaml @@ -198,7 +198,7 @@ jobs: matrix: config: - image: ghcr.io/insightsengineering/rstudio - tag: latest + tag: '2024.04.05' name: ${{ matrix.config.image }}, version ${{ matrix.config.tag }} runs-on: ubuntu-latest if: > diff --git a/.github/workflows/roxygen.yaml b/.github/workflows/roxygen.yaml index 5020d230..35f26faa 100644 --- a/.github/workflows/roxygen.yaml +++ b/.github/workflows/roxygen.yaml @@ -59,7 +59,7 @@ jobs: !contains(github.event.commits[0].message, '[skip roxygen]') && github.event.pull_request.draft == false container: - image: ghcr.io/insightsengineering/rstudio:latest + image: ghcr.io/insightsengineering/rstudio:2024.04.05 steps: - name: Setup token ๐Ÿ”‘ diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index f3aba70e..defd5d10 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -101,7 +101,7 @@ jobs: !contains(github.event.commits[0].message, '[skip coverage]') && github.event.pull_request.draft == false container: - image: ghcr.io/insightsengineering/rstudio:latest + image: ghcr.io/insightsengineering/rstudio:2024.04.05 outputs: publish-coverage-html-report: ${{ steps.coverage-output.outputs.coverage-upload }} current-branch-or-tag: ${{ steps.current-branch-or-tag.outputs.ref-name }} From 8168124fcd725762d9f8e3397bdc584a71acd759 Mon Sep 17 00:00:00 2001 From: Franciszek Walkowiak Date: Tue, 23 Apr 2024 11:31:32 +0200 Subject: [PATCH 02/11] Update --- .github/workflows/build-check-install.yaml | 8 ++++++++ .github/workflows/roxygen.yaml | 8 ++++++++ .github/workflows/test-coverage.yaml | 8 ++++++++ 3 files changed, 24 insertions(+) diff --git a/.github/workflows/build-check-install.yaml b/.github/workflows/build-check-install.yaml index f15b4e5d..9d654db7 100644 --- a/.github/workflows/build-check-install.yaml +++ b/.github/workflows/build-check-install.yaml @@ -359,6 +359,14 @@ jobs: update.packages() shell: Rscript {0} + - name: Test + shell: bash + run: | + apt update && apt install -yq tree + echo "pwd = $(pwd)" + ls -la + tree . + - name: Run Staged dependencies ๐ŸŽฆ if: >- env.enable_sd == 'true' diff --git a/.github/workflows/roxygen.yaml b/.github/workflows/roxygen.yaml index 35f26faa..97ff3e0b 100644 --- a/.github/workflows/roxygen.yaml +++ b/.github/workflows/roxygen.yaml @@ -114,6 +114,14 @@ jobs: key: sd-${{ runner.os }}-${{ github.event.repository.name }} path: ~/.staged.dependencies + - name: Test + shell: bash + run: | + apt update && apt install -yq tree + echo "pwd = $(pwd)" + ls -la + tree . + - name: Run Staged dependencies ๐ŸŽฆ uses: insightsengineering/staged-dependencies-action@v1 env: diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index defd5d10..acc6289f 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -206,6 +206,14 @@ jobs: } fi + - name: Test + shell: bash + run: | + apt update && apt install -yq tree + echo "pwd = $(pwd)" + ls -la + tree . + - name: Restore SD cache ๐Ÿ’ฐ uses: actions/cache@v4 with: From adda2369f032fd38388ae1f18b967ff82fe3a777 Mon Sep 17 00:00:00 2001 From: Franciszek Walkowiak Date: Tue, 23 Apr 2024 11:36:50 +0200 Subject: [PATCH 03/11] Update --- .github/workflows/build-check-install.yaml | 4 ++-- .github/workflows/roxygen.yaml | 4 ++-- .github/workflows/test-coverage.yaml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-check-install.yaml b/.github/workflows/build-check-install.yaml index 9d654db7..596e0a22 100644 --- a/.github/workflows/build-check-install.yaml +++ b/.github/workflows/build-check-install.yaml @@ -365,7 +365,7 @@ jobs: apt update && apt install -yq tree echo "pwd = $(pwd)" ls -la - tree . + tree -a . - name: Run Staged dependencies ๐ŸŽฆ if: >- @@ -375,7 +375,7 @@ jobs: env: GITHUB_PAT: ${{ steps.github-token.outputs.token }} with: - path: ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }} + path: ${{ github.event.repository.name }} enable-check: ${{ inputs.enable-staged-dependencies-check }} run-system-dependencies: ${{ inputs.install-system-dependencies }} direction: ${{ inputs.sd-direction }} diff --git a/.github/workflows/roxygen.yaml b/.github/workflows/roxygen.yaml index 97ff3e0b..d70a4f3c 100644 --- a/.github/workflows/roxygen.yaml +++ b/.github/workflows/roxygen.yaml @@ -120,14 +120,14 @@ jobs: apt update && apt install -yq tree echo "pwd = $(pwd)" ls -la - tree . + tree -a . - name: Run Staged dependencies ๐ŸŽฆ uses: insightsengineering/staged-dependencies-action@v1 env: GITHUB_PAT: ${{ steps.github-token.outputs.token }} with: - path: ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }} + path: ${{ github.event.repository.name }} enable-check: ${{ inputs.enable-staged-dependencies-check }} run-system-dependencies: ${{ inputs.install-system-dependencies }} direction: ${{ inputs.sd-direction }} diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index acc6289f..4546e8aa 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -212,7 +212,7 @@ jobs: apt update && apt install -yq tree echo "pwd = $(pwd)" ls -la - tree . + tree -a . - name: Restore SD cache ๐Ÿ’ฐ uses: actions/cache@v4 @@ -225,7 +225,7 @@ jobs: env: GITHUB_PAT: ${{ secrets.REPO_GITHUB_TOKEN }} with: - path: ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }} + path: ${{ github.event.repository.name }} enable-check: ${{ inputs.enable-staged-dependencies-check }} run-system-dependencies: ${{ inputs.install-system-dependencies }} direction: ${{ inputs.sd-direction }} From 2a317b1494e93a9e163d85ad028259654890f41b Mon Sep 17 00:00:00 2001 From: Franciszek Walkowiak Date: Tue, 23 Apr 2024 11:45:43 +0200 Subject: [PATCH 04/11] Update --- .github/workflows/build-check-install.yaml | 14 ++++++++++---- .github/workflows/roxygen.yaml | 5 +++-- .github/workflows/test-coverage.yaml | 3 ++- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-check-install.yaml b/.github/workflows/build-check-install.yaml index 596e0a22..34fb8ebe 100644 --- a/.github/workflows/build-check-install.yaml +++ b/.github/workflows/build-check-install.yaml @@ -236,8 +236,8 @@ jobs: with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} path: ${{ github.event.repository.name }} - repository: ${{ github.event.pull_request.head.repo.full_name }} - fetch-depth: 0 + # repository: ${{ github.event.pull_request.head.repo.full_name }} + # fetch-depth: 0 - name: Checkout repo ๐Ÿ›Ž uses: actions/checkout@v4 @@ -352,9 +352,14 @@ jobs: key: sd-${{ runner.os }}-${{ github.event.repository.name }} path: ~/.staged.dependencies + - name: Test + shell: bash + run: | + R -e -q 'packageVersion("git2r")' + - name: Update R packages ๐Ÿ—“๏ธ - if: >- - inputs.update-r-packages == true + # if: >- + # inputs.update-r-packages == true run: | update.packages() shell: Rscript {0} @@ -366,6 +371,7 @@ jobs: echo "pwd = $(pwd)" ls -la tree -a . + R -e -q 'packageVersion("git2r")' - name: Run Staged dependencies ๐ŸŽฆ if: >- diff --git a/.github/workflows/roxygen.yaml b/.github/workflows/roxygen.yaml index d70a4f3c..29bd8c0f 100644 --- a/.github/workflows/roxygen.yaml +++ b/.github/workflows/roxygen.yaml @@ -84,8 +84,8 @@ jobs: with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} path: ${{ github.event.repository.name }} - repository: ${{ github.event.pull_request.head.repo.full_name }} - token: ${{ steps.github-token.outputs.token }} + # repository: ${{ github.event.pull_request.head.repo.full_name }} + # token: ${{ steps.github-token.outputs.token }} - name: Checkout repo ๐Ÿ›Ž uses: actions/checkout@v4 @@ -121,6 +121,7 @@ jobs: echo "pwd = $(pwd)" ls -la tree -a . + R -e -q 'packageVersion("git2r")' - name: Run Staged dependencies ๐ŸŽฆ uses: insightsengineering/staged-dependencies-action@v1 diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index 4546e8aa..8e5577be 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -172,7 +172,7 @@ jobs: with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} path: ${{ github.event.repository.name }} - repository: ${{ github.event.pull_request.head.repo.full_name }} + # repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Checkout repo ๐Ÿ›Ž uses: actions/checkout@v4 @@ -213,6 +213,7 @@ jobs: echo "pwd = $(pwd)" ls -la tree -a . + R -e -q 'packageVersion("git2r")' - name: Restore SD cache ๐Ÿ’ฐ uses: actions/cache@v4 From 234393d3e4c166301a06cd27dbef150bc5cad45e Mon Sep 17 00:00:00 2001 From: Franciszek Walkowiak Date: Tue, 23 Apr 2024 11:50:19 +0200 Subject: [PATCH 05/11] Update --- .github/workflows/build-check-install.yaml | 4 ++-- .github/workflows/roxygen.yaml | 2 +- .github/workflows/test-coverage.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-check-install.yaml b/.github/workflows/build-check-install.yaml index 34fb8ebe..26707943 100644 --- a/.github/workflows/build-check-install.yaml +++ b/.github/workflows/build-check-install.yaml @@ -355,7 +355,7 @@ jobs: - name: Test shell: bash run: | - R -e -q 'packageVersion("git2r")' + R -q -e 'packageVersion("git2r")' - name: Update R packages ๐Ÿ—“๏ธ # if: >- @@ -371,7 +371,7 @@ jobs: echo "pwd = $(pwd)" ls -la tree -a . - R -e -q 'packageVersion("git2r")' + R -q -e 'packageVersion("git2r")' - name: Run Staged dependencies ๐ŸŽฆ if: >- diff --git a/.github/workflows/roxygen.yaml b/.github/workflows/roxygen.yaml index 29bd8c0f..3d440cc8 100644 --- a/.github/workflows/roxygen.yaml +++ b/.github/workflows/roxygen.yaml @@ -121,7 +121,7 @@ jobs: echo "pwd = $(pwd)" ls -la tree -a . - R -e -q 'packageVersion("git2r")' + R -q -e 'packageVersion("git2r")' - name: Run Staged dependencies ๐ŸŽฆ uses: insightsengineering/staged-dependencies-action@v1 diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index 8e5577be..889fa824 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -213,7 +213,7 @@ jobs: echo "pwd = $(pwd)" ls -la tree -a . - R -e -q 'packageVersion("git2r")' + R -q -e 'packageVersion("git2r")' - name: Restore SD cache ๐Ÿ’ฐ uses: actions/cache@v4 From 29fbc0ffe2140a52adc45d23504700eb22006456 Mon Sep 17 00:00:00 2001 From: Franciszek Walkowiak Date: Tue, 23 Apr 2024 12:01:25 +0200 Subject: [PATCH 06/11] Update --- .github/workflows/build-check-install.yaml | 10 +++------- .github/workflows/roxygen.yaml | 1 + .github/workflows/test-coverage.yaml | 1 + 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-check-install.yaml b/.github/workflows/build-check-install.yaml index 26707943..6840f51a 100644 --- a/.github/workflows/build-check-install.yaml +++ b/.github/workflows/build-check-install.yaml @@ -352,14 +352,9 @@ jobs: key: sd-${{ runner.os }}-${{ github.event.repository.name }} path: ~/.staged.dependencies - - name: Test - shell: bash - run: | - R -q -e 'packageVersion("git2r")' - - name: Update R packages ๐Ÿ—“๏ธ - # if: >- - # inputs.update-r-packages == true + if: >- + inputs.update-r-packages == true run: | update.packages() shell: Rscript {0} @@ -372,6 +367,7 @@ jobs: ls -la tree -a . R -q -e 'packageVersion("git2r")' + chmod -R 777 ${{ github.event.repository.name }} - name: Run Staged dependencies ๐ŸŽฆ if: >- diff --git a/.github/workflows/roxygen.yaml b/.github/workflows/roxygen.yaml index 3d440cc8..a66f6239 100644 --- a/.github/workflows/roxygen.yaml +++ b/.github/workflows/roxygen.yaml @@ -122,6 +122,7 @@ jobs: ls -la tree -a . R -q -e 'packageVersion("git2r")' + chmod -R 777 ${{ github.event.repository.name }} - name: Run Staged dependencies ๐ŸŽฆ uses: insightsengineering/staged-dependencies-action@v1 diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index 889fa824..86004304 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -214,6 +214,7 @@ jobs: ls -la tree -a . R -q -e 'packageVersion("git2r")' + chmod -R 777 ${{ github.event.repository.name }} - name: Restore SD cache ๐Ÿ’ฐ uses: actions/cache@v4 From 4d752249e7b8005e90afd0d34e6a7e2284dcc293 Mon Sep 17 00:00:00 2001 From: Franciszek Walkowiak Date: Tue, 23 Apr 2024 12:16:25 +0200 Subject: [PATCH 07/11] Update --- .github/workflows/build-check-install.yaml | 6 ++++-- .github/workflows/roxygen.yaml | 6 ++++-- .github/workflows/test-coverage.yaml | 6 ++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-check-install.yaml b/.github/workflows/build-check-install.yaml index 6840f51a..0270caf5 100644 --- a/.github/workflows/build-check-install.yaml +++ b/.github/workflows/build-check-install.yaml @@ -362,12 +362,14 @@ jobs: - name: Test shell: bash run: | - apt update && apt install -yq tree + # apt update && apt install -yq tree echo "pwd = $(pwd)" ls -la - tree -a . + # tree -a . R -q -e 'packageVersion("git2r")' chmod -R 777 ${{ github.event.repository.name }} + ls -la + ls -la ${{ github.event.repository.name }} - name: Run Staged dependencies ๐ŸŽฆ if: >- diff --git a/.github/workflows/roxygen.yaml b/.github/workflows/roxygen.yaml index a66f6239..337312c0 100644 --- a/.github/workflows/roxygen.yaml +++ b/.github/workflows/roxygen.yaml @@ -117,12 +117,14 @@ jobs: - name: Test shell: bash run: | - apt update && apt install -yq tree + # apt update && apt install -yq tree echo "pwd = $(pwd)" ls -la - tree -a . + # tree -a . R -q -e 'packageVersion("git2r")' chmod -R 777 ${{ github.event.repository.name }} + ls -la + ls -la ${{ github.event.repository.name }} - name: Run Staged dependencies ๐ŸŽฆ uses: insightsengineering/staged-dependencies-action@v1 diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index 86004304..10ad4f37 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -209,12 +209,14 @@ jobs: - name: Test shell: bash run: | - apt update && apt install -yq tree + # apt update && apt install -yq tree echo "pwd = $(pwd)" ls -la - tree -a . + # tree -a . R -q -e 'packageVersion("git2r")' chmod -R 777 ${{ github.event.repository.name }} + ls -la + ls -la ${{ github.event.repository.name }} - name: Restore SD cache ๐Ÿ’ฐ uses: actions/cache@v4 From 4e55e729103c9d2c9a2e5927146d856e3fd0b365 Mon Sep 17 00:00:00 2001 From: Franciszek Walkowiak Date: Tue, 23 Apr 2024 12:24:46 +0200 Subject: [PATCH 08/11] Update --- .github/workflows/build-check-install.yaml | 28 +++++++++++----------- .github/workflows/roxygen.yaml | 28 +++++++++++----------- .github/workflows/test-coverage.yaml | 26 ++++++++++---------- 3 files changed, 41 insertions(+), 41 deletions(-) diff --git a/.github/workflows/build-check-install.yaml b/.github/workflows/build-check-install.yaml index 0270caf5..3848c587 100644 --- a/.github/workflows/build-check-install.yaml +++ b/.github/workflows/build-check-install.yaml @@ -231,13 +231,13 @@ jobs: uses: tj-actions/branch-names@v7 - name: Checkout repo (PR) ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name == 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} path: ${{ github.event.repository.name }} - # repository: ${{ github.event.pull_request.head.repo.full_name }} - # fetch-depth: 0 + repository: ${{ github.event.pull_request.head.repo.full_name }} + fetch-depth: 0 - name: Checkout repo ๐Ÿ›Ž uses: actions/checkout@v4 @@ -359,17 +359,17 @@ jobs: update.packages() shell: Rscript {0} - - name: Test - shell: bash - run: | - # apt update && apt install -yq tree - echo "pwd = $(pwd)" - ls -la - # tree -a . - R -q -e 'packageVersion("git2r")' - chmod -R 777 ${{ github.event.repository.name }} - ls -la - ls -la ${{ github.event.repository.name }} + # - name: Test + # shell: bash + # run: | + # # apt update && apt install -yq tree + # echo "pwd = $(pwd)" + # ls -la + # # tree -a . + # R -q -e 'packageVersion("git2r")' + # chmod -R 777 ${{ github.event.repository.name }} + # ls -la + # ls -la ${{ github.event.repository.name }} - name: Run Staged dependencies ๐ŸŽฆ if: >- diff --git a/.github/workflows/roxygen.yaml b/.github/workflows/roxygen.yaml index 337312c0..48fa1a48 100644 --- a/.github/workflows/roxygen.yaml +++ b/.github/workflows/roxygen.yaml @@ -79,13 +79,13 @@ jobs: uses: tj-actions/branch-names@v7 - name: Checkout repo (PR) ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name == 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} path: ${{ github.event.repository.name }} - # repository: ${{ github.event.pull_request.head.repo.full_name }} - # token: ${{ steps.github-token.outputs.token }} + repository: ${{ github.event.pull_request.head.repo.full_name }} + token: ${{ steps.github-token.outputs.token }} - name: Checkout repo ๐Ÿ›Ž uses: actions/checkout@v4 @@ -114,17 +114,17 @@ jobs: key: sd-${{ runner.os }}-${{ github.event.repository.name }} path: ~/.staged.dependencies - - name: Test - shell: bash - run: | - # apt update && apt install -yq tree - echo "pwd = $(pwd)" - ls -la - # tree -a . - R -q -e 'packageVersion("git2r")' - chmod -R 777 ${{ github.event.repository.name }} - ls -la - ls -la ${{ github.event.repository.name }} + # - name: Test + # shell: bash + # run: | + # # apt update && apt install -yq tree + # echo "pwd = $(pwd)" + # ls -la + # # tree -a . + # R -q -e 'packageVersion("git2r")' + # chmod -R 777 ${{ github.event.repository.name }} + # ls -la + # ls -la ${{ github.event.repository.name }} - name: Run Staged dependencies ๐ŸŽฆ uses: insightsengineering/staged-dependencies-action@v1 diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index 10ad4f37..e8171896 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -167,12 +167,12 @@ jobs: shell: bash - name: Checkout repo (PR) ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name == 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} path: ${{ github.event.repository.name }} - # repository: ${{ github.event.pull_request.head.repo.full_name }} + repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Checkout repo ๐Ÿ›Ž uses: actions/checkout@v4 @@ -206,17 +206,17 @@ jobs: } fi - - name: Test - shell: bash - run: | - # apt update && apt install -yq tree - echo "pwd = $(pwd)" - ls -la - # tree -a . - R -q -e 'packageVersion("git2r")' - chmod -R 777 ${{ github.event.repository.name }} - ls -la - ls -la ${{ github.event.repository.name }} + # - name: Test + # shell: bash + # run: | + # # apt update && apt install -yq tree + # echo "pwd = $(pwd)" + # ls -la + # # tree -a . + # R -q -e 'packageVersion("git2r")' + # chmod -R 777 ${{ github.event.repository.name }} + # ls -la + # ls -la ${{ github.event.repository.name }} - name: Restore SD cache ๐Ÿ’ฐ uses: actions/cache@v4 From e47e4dbf2613d3adf3cea82ca60e3afd905fe98a Mon Sep 17 00:00:00 2001 From: Franciszek Walkowiak Date: Tue, 23 Apr 2024 12:34:41 +0200 Subject: [PATCH 09/11] Update --- .github/workflows/build-check-install.yaml | 4 ++-- .github/workflows/roxygen.yaml | 4 ++-- .github/workflows/test-coverage.yaml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-check-install.yaml b/.github/workflows/build-check-install.yaml index 3848c587..59a3d437 100644 --- a/.github/workflows/build-check-install.yaml +++ b/.github/workflows/build-check-install.yaml @@ -198,7 +198,7 @@ jobs: matrix: config: - image: ghcr.io/insightsengineering/rstudio - tag: '2024.04.05' + tag: latest name: ${{ matrix.config.image }}, version ${{ matrix.config.tag }} runs-on: ubuntu-latest if: > @@ -379,7 +379,7 @@ jobs: env: GITHUB_PAT: ${{ steps.github-token.outputs.token }} with: - path: ${{ github.event.repository.name }} + path: ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }} enable-check: ${{ inputs.enable-staged-dependencies-check }} run-system-dependencies: ${{ inputs.install-system-dependencies }} direction: ${{ inputs.sd-direction }} diff --git a/.github/workflows/roxygen.yaml b/.github/workflows/roxygen.yaml index 48fa1a48..55da9332 100644 --- a/.github/workflows/roxygen.yaml +++ b/.github/workflows/roxygen.yaml @@ -59,7 +59,7 @@ jobs: !contains(github.event.commits[0].message, '[skip roxygen]') && github.event.pull_request.draft == false container: - image: ghcr.io/insightsengineering/rstudio:2024.04.05 + image: ghcr.io/insightsengineering/rstudio:latest steps: - name: Setup token ๐Ÿ”‘ @@ -131,7 +131,7 @@ jobs: env: GITHUB_PAT: ${{ steps.github-token.outputs.token }} with: - path: ${{ github.event.repository.name }} + path: ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }} enable-check: ${{ inputs.enable-staged-dependencies-check }} run-system-dependencies: ${{ inputs.install-system-dependencies }} direction: ${{ inputs.sd-direction }} diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index e8171896..cecc5138 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -101,7 +101,7 @@ jobs: !contains(github.event.commits[0].message, '[skip coverage]') && github.event.pull_request.draft == false container: - image: ghcr.io/insightsengineering/rstudio:2024.04.05 + image: ghcr.io/insightsengineering/rstudio:latest outputs: publish-coverage-html-report: ${{ steps.coverage-output.outputs.coverage-upload }} current-branch-or-tag: ${{ steps.current-branch-or-tag.outputs.ref-name }} @@ -229,7 +229,7 @@ jobs: env: GITHUB_PAT: ${{ secrets.REPO_GITHUB_TOKEN }} with: - path: ${{ github.event.repository.name }} + path: ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }} enable-check: ${{ inputs.enable-staged-dependencies-check }} run-system-dependencies: ${{ inputs.install-system-dependencies }} direction: ${{ inputs.sd-direction }} From e2d712e5f4d6db4c5027d2a0587d70465c01ffcb Mon Sep 17 00:00:00 2001 From: Franciszek Walkowiak Date: Tue, 23 Apr 2024 12:39:44 +0200 Subject: [PATCH 10/11] Cleanup --- .github/workflows/build-check-install.yaml | 12 ------------ .github/workflows/roxygen.yaml | 12 ------------ .github/workflows/test-coverage.yaml | 12 ------------ 3 files changed, 36 deletions(-) diff --git a/.github/workflows/build-check-install.yaml b/.github/workflows/build-check-install.yaml index 59a3d437..09158b3d 100644 --- a/.github/workflows/build-check-install.yaml +++ b/.github/workflows/build-check-install.yaml @@ -359,18 +359,6 @@ jobs: update.packages() shell: Rscript {0} - # - name: Test - # shell: bash - # run: | - # # apt update && apt install -yq tree - # echo "pwd = $(pwd)" - # ls -la - # # tree -a . - # R -q -e 'packageVersion("git2r")' - # chmod -R 777 ${{ github.event.repository.name }} - # ls -la - # ls -la ${{ github.event.repository.name }} - - name: Run Staged dependencies ๐ŸŽฆ if: >- env.enable_sd == 'true' diff --git a/.github/workflows/roxygen.yaml b/.github/workflows/roxygen.yaml index 55da9332..e6210382 100644 --- a/.github/workflows/roxygen.yaml +++ b/.github/workflows/roxygen.yaml @@ -114,18 +114,6 @@ jobs: key: sd-${{ runner.os }}-${{ github.event.repository.name }} path: ~/.staged.dependencies - # - name: Test - # shell: bash - # run: | - # # apt update && apt install -yq tree - # echo "pwd = $(pwd)" - # ls -la - # # tree -a . - # R -q -e 'packageVersion("git2r")' - # chmod -R 777 ${{ github.event.repository.name }} - # ls -la - # ls -la ${{ github.event.repository.name }} - - name: Run Staged dependencies ๐ŸŽฆ uses: insightsengineering/staged-dependencies-action@v1 env: diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index cecc5138..9966b695 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -206,18 +206,6 @@ jobs: } fi - # - name: Test - # shell: bash - # run: | - # # apt update && apt install -yq tree - # echo "pwd = $(pwd)" - # ls -la - # # tree -a . - # R -q -e 'packageVersion("git2r")' - # chmod -R 777 ${{ github.event.repository.name }} - # ls -la - # ls -la ${{ github.event.repository.name }} - - name: Restore SD cache ๐Ÿ’ฐ uses: actions/cache@v4 with: From d2e54907b3b7e38a8a6679691dcf4dd7381032e4 Mon Sep 17 00:00:00 2001 From: Franciszek Walkowiak Date: Tue, 23 Apr 2024 12:48:39 +0200 Subject: [PATCH 11/11] Switch to actions/checkout@v4.1.1 in all workflows --- .github/workflows/audit.yaml | 4 ++-- .github/workflows/bioccheck.yaml | 4 ++-- .github/workflows/branch-cleanup.yaml | 2 +- .github/workflows/build-check-install.yaml | 10 +++++----- .github/workflows/gitleaks.yaml | 8 ++++---- .github/workflows/grammar.yaml | 4 ++-- .github/workflows/licenses.yaml | 4 ++-- .github/workflows/links.yaml | 4 ++-- .github/workflows/linter.yaml | 8 ++++---- .github/workflows/pkgdown.yaml | 10 +++++----- .github/workflows/release.yaml | 2 +- .github/workflows/roxygen.yaml | 2 +- .github/workflows/spelling.yaml | 4 ++-- .github/workflows/style.yaml | 4 ++-- .github/workflows/test-coverage.yaml | 8 ++++---- .github/workflows/validation.yaml | 6 +++--- .github/workflows/verdepcheck.yaml | 2 +- .github/workflows/version-bump.yaml | 2 +- .github/workflows/version.yaml | 8 ++++---- 19 files changed, 48 insertions(+), 48 deletions(-) diff --git a/.github/workflows/audit.yaml b/.github/workflows/audit.yaml index 6ddf6db0..0a5ad5da 100644 --- a/.github/workflows/audit.yaml +++ b/.github/workflows/audit.yaml @@ -41,7 +41,7 @@ jobs: uses: tj-actions/branch-names@v7 - name: Checkout repo (PR) ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name == 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} @@ -49,7 +49,7 @@ jobs: fetch-depth: 1 - name: Checkout repo ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name != 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} diff --git a/.github/workflows/bioccheck.yaml b/.github/workflows/bioccheck.yaml index d79b4179..022be715 100644 --- a/.github/workflows/bioccheck.yaml +++ b/.github/workflows/bioccheck.yaml @@ -93,7 +93,7 @@ jobs: uses: tj-actions/branch-names@v7 - name: Checkout repo (PR) ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name == 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} @@ -101,7 +101,7 @@ jobs: repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Checkout repo ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name != 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} diff --git a/.github/workflows/branch-cleanup.yaml b/.github/workflows/branch-cleanup.yaml index f9b09b25..97b042fd 100644 --- a/.github/workflows/branch-cleanup.yaml +++ b/.github/workflows/branch-cleanup.yaml @@ -37,7 +37,7 @@ jobs: shell: bash - name: Checkout Code ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 - name: Cleanup branches ๐ŸŒฟ uses: phpdocker-io/github-actions-delete-abandoned-branches@v1 diff --git a/.github/workflows/build-check-install.yaml b/.github/workflows/build-check-install.yaml index 09158b3d..04ed446e 100644 --- a/.github/workflows/build-check-install.yaml +++ b/.github/workflows/build-check-install.yaml @@ -240,7 +240,7 @@ jobs: fetch-depth: 0 - name: Checkout repo ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name != 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} @@ -265,7 +265,7 @@ jobs: inputs.publish-unit-test-report-gh-pages == true && github.event_name != 'pull_request' id: checkout-gh-pages - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 with: ref: gh-pages path: gh-pages @@ -488,7 +488,7 @@ jobs: - name: Fetch report from ${{ env.junit_xml_storage }} โคต๏ธ if: env.junit_xml_comparison == 'true' - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 with: path: ${{ env.junit_xml_storage }} fetch-depth: 0 @@ -587,7 +587,7 @@ jobs: - name: Fetch JUnit XML reports from ${{ env.junit_xml_storage }} โคต๏ธ if: steps.check-junit-xml.outputs.files_exists == 'true' && env.junit_xml_comparison == 'true' - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 with: path: ${{ env.junit_xml_storage }} fetch-depth: 0 @@ -858,7 +858,7 @@ jobs: steps: - name: Checkout repo ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 - name: Get package build filename ๐Ÿ“ฆ run: | diff --git a/.github/workflows/gitleaks.yaml b/.github/workflows/gitleaks.yaml index 07c8223d..4decb2b9 100644 --- a/.github/workflows/gitleaks.yaml +++ b/.github/workflows/gitleaks.yaml @@ -45,14 +45,14 @@ jobs: uses: tj-actions/branch-names@v7 - name: Checkout repo (PR) ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name == 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Checkout repo ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name != 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} @@ -103,7 +103,7 @@ jobs: uses: tj-actions/branch-names@v7 - name: Checkout repo (PR) ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name == 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} @@ -111,7 +111,7 @@ jobs: fetch-depth: 0 - name: Checkout repo ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name != 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} diff --git a/.github/workflows/grammar.yaml b/.github/workflows/grammar.yaml index e2a16a7d..a5671181 100644 --- a/.github/workflows/grammar.yaml +++ b/.github/workflows/grammar.yaml @@ -44,14 +44,14 @@ jobs: uses: tj-actions/branch-names@v7 - name: Checkout repo (PR) ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name == 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Checkout repo ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name != 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} diff --git a/.github/workflows/licenses.yaml b/.github/workflows/licenses.yaml index bf105903..66d98ca3 100644 --- a/.github/workflows/licenses.yaml +++ b/.github/workflows/licenses.yaml @@ -39,14 +39,14 @@ jobs: uses: tj-actions/branch-names@v7 - name: Checkout repo (PR) ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name == 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Checkout repo ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name != 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} diff --git a/.github/workflows/links.yaml b/.github/workflows/links.yaml index 403ca526..768dd205 100644 --- a/.github/workflows/links.yaml +++ b/.github/workflows/links.yaml @@ -39,14 +39,14 @@ jobs: uses: tj-actions/branch-names@v7 - name: Checkout repo (PR) ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name == 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Checkout repo ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name != 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} diff --git a/.github/workflows/linter.yaml b/.github/workflows/linter.yaml index 88d45551..28067889 100644 --- a/.github/workflows/linter.yaml +++ b/.github/workflows/linter.yaml @@ -45,7 +45,7 @@ jobs: uses: tj-actions/branch-names@v7 - name: Checkout repo (PR) ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name == 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} @@ -53,7 +53,7 @@ jobs: fetch-depth: 0 - name: Checkout repo ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name != 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} @@ -121,14 +121,14 @@ jobs: steps: - name: Checkout repo (PR) ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name == 'pull_request' with: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 - name: Checkout repo ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name != 'pull_request' with: fetch-depth: 0 diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml index 7e18c672..d2a0142d 100644 --- a/.github/workflows/pkgdown.yaml +++ b/.github/workflows/pkgdown.yaml @@ -160,7 +160,7 @@ jobs: shell: bash - name: Checkout repo (PR) ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name == 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} @@ -168,7 +168,7 @@ jobs: repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Checkout repo ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name != 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} @@ -243,7 +243,7 @@ jobs: - name: Checkout gh-pages ๐Ÿ›Ž if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'push' - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 with: path: "gh-pages" fetch-depth: 0 @@ -300,7 +300,7 @@ jobs: && !contains(github.event.commits[0].message, '[skip docs]') steps: - name: Checkout repo ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 with: path: ${{ github.event.repository.name }} ref: "gh-pages" @@ -336,7 +336,7 @@ jobs: && !contains(github.event.commits[0].message, '[skip docs]') steps: - name: Checkout repo ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 - name: Download artifact โฌ uses: actions/download-artifact@v4 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 543cd005..c262048f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -50,7 +50,7 @@ jobs: shell: bash - name: Checkout repo ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 - name: Check commit message ๐Ÿ’ฌ run: | diff --git a/.github/workflows/roxygen.yaml b/.github/workflows/roxygen.yaml index e6210382..497f6b03 100644 --- a/.github/workflows/roxygen.yaml +++ b/.github/workflows/roxygen.yaml @@ -88,7 +88,7 @@ jobs: token: ${{ steps.github-token.outputs.token }} - name: Checkout repo ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name != 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} diff --git a/.github/workflows/spelling.yaml b/.github/workflows/spelling.yaml index 8d1e335a..3f594e7d 100644 --- a/.github/workflows/spelling.yaml +++ b/.github/workflows/spelling.yaml @@ -63,7 +63,7 @@ jobs: uses: tj-actions/branch-names@v7 - name: Checkout repo (PR) ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name == 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} @@ -72,7 +72,7 @@ jobs: token: ${{ steps.github-token.outputs.token }} - name: Checkout repo ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name != 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} diff --git a/.github/workflows/style.yaml b/.github/workflows/style.yaml index 5a24b8a8..4572694a 100644 --- a/.github/workflows/style.yaml +++ b/.github/workflows/style.yaml @@ -64,7 +64,7 @@ jobs: uses: tj-actions/branch-names@v7 - name: Checkout repo (PR) ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name == 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} @@ -74,7 +74,7 @@ jobs: token: ${{ steps.github-token.outputs.token }} - name: Checkout repo ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name != 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index 9966b695..9ab106e4 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -131,7 +131,7 @@ jobs: github.event_name != 'pull_request' && inputs.publish-coverage-report-gh-pages == true id: checkout-gh-pages - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 with: ref: gh-pages path: gh-pages @@ -175,7 +175,7 @@ jobs: repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Checkout repo ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name != 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} @@ -333,7 +333,7 @@ jobs: uses: tj-actions/branch-names@v7 - name: Checkout repo (PR) ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name == 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} @@ -341,7 +341,7 @@ jobs: repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Checkout repo ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name != 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} diff --git a/.github/workflows/validation.yaml b/.github/workflows/validation.yaml index 33e95151..0396f549 100644 --- a/.github/workflows/validation.yaml +++ b/.github/workflows/validation.yaml @@ -79,14 +79,14 @@ jobs: uses: tj-actions/branch-names@v7 - name: Checkout repo (PR) ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name == 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Checkout repo ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name != 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} @@ -148,7 +148,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/v') steps: - name: Checkout repo ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 - name: Download artifact โฌ uses: actions/download-artifact@v4 diff --git a/.github/workflows/verdepcheck.yaml b/.github/workflows/verdepcheck.yaml index 5c352207..9dd4a5e2 100644 --- a/.github/workflows/verdepcheck.yaml +++ b/.github/workflows/verdepcheck.yaml @@ -67,7 +67,7 @@ jobs: uses: tj-actions/branch-names@v7 - name: Checkout repo ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} fetch-depth: 1 diff --git a/.github/workflows/version-bump.yaml b/.github/workflows/version-bump.yaml index cf1b7c9b..1ea6190e 100644 --- a/.github/workflows/version-bump.yaml +++ b/.github/workflows/version-bump.yaml @@ -61,7 +61,7 @@ jobs: uses: tj-actions/branch-names@v7 - name: Checkout repo ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} token: ${{ steps.github-token.outputs.token }} diff --git a/.github/workflows/version.yaml b/.github/workflows/version.yaml index 58264edf..7e4c2506 100644 --- a/.github/workflows/version.yaml +++ b/.github/workflows/version.yaml @@ -40,14 +40,14 @@ jobs: uses: tj-actions/branch-names@v7 - name: Checkout repo (PR) ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name == 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Checkout repo ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name != 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} @@ -103,14 +103,14 @@ jobs: uses: tj-actions/branch-names@v7 - name: Checkout repo (PR) ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name == 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }} repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Checkout repo ๐Ÿ›Ž - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.event_name != 'pull_request' with: ref: ${{ steps.branch-name.outputs.head_ref_branch }}