From 1be2443822372ef97ecf150c07d66478da82bdfb Mon Sep 17 00:00:00 2001 From: cicdguy <26552821+cicdguy@users.noreply.github.com> Date: Thu, 21 Mar 2024 09:56:24 -0500 Subject: [PATCH] Remove TESTING_DEPTH override Signed-off-by: cicdguy <26552821+cicdguy@users.noreply.github.com> --- .github/workflows/build-check-install.yaml | 25 ---------------------- 1 file changed, 25 deletions(-) diff --git a/.github/workflows/build-check-install.yaml b/.github/workflows/build-check-install.yaml index 46d269d5..1bf22de7 100644 --- a/.github/workflows/build-check-install.yaml +++ b/.github/workflows/build-check-install.yaml @@ -225,10 +225,6 @@ jobs: ref: ${{ steps.branch-name.outputs.head_ref_branch }} path: ${{ github.event.repository.name }} repository: ${{ github.event.pull_request.head.repo.full_name }} - # When fetch-depth is set to 1 (default), and if additional commits are added - # to the branch between this step and the 'Set TESTING_DEPTH' step, git might fail - # referencing ${{ github.event.after }} commit - # because it's not the latest commit fetched by this step. fetch-depth: 0 - name: Checkout repo 🛎 @@ -427,27 +423,6 @@ jobs: R CMD build ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }} shell: bash - - name: Set TESTING_DEPTH ⚙ - env: - COMMIT_NEWEST_MESSAGE: ${{ github.event.head_commit.message }} - COMMIT_OLDEST_MESSAGE: ${{ github.event.commits[0].message }} - run: | - # set TESTING_DEPTH for PR - if [[ ! -z "${GITHUB_HEAD_REF}" ]]; then - TESTING_DEPTH=3 - echo "TESTING_DEPTH=3" >> $GITHUB_ENV - COMMIT_NEWEST_MESSAGE=$(git log --format=%B -n 1 ${{ github.event.after }}) - fi - if [[ $COMMIT_NEWEST_MESSAGE == *"[skip tests]"* ]]; then - echo "NO_TESTS=1" >> $GITHUB_ENV - fi - # default TESTING_DEPTH - if [[ -z "${TESTING_DEPTH}" ]]; then - echo "TESTING_DEPTH=1" >> $GITHUB_ENV - fi - shell: bash - working-directory: ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }} - - name: Run R CMD check 🏁 run: | if [ "${{ inputs.skip-r-cmd-check }}" == "true" ]