From 07dba6b85d18482fb68d20c4b936467b0b17baad Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Wed, 15 Feb 2023 19:43:05 -0700 Subject: [PATCH] Fixed the test --- .github/workflows/test.yml | 1 + diff-sha.sh | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 22a646eb..f0d81cfc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -355,6 +355,7 @@ jobs: with: base_sha: "85bd869" sha: "adde7bb" + fetch_depth: 60000 - name: Verify added files if: steps.changed-files.outputs.added_files != 'test/demo/test/test.txt' diff --git a/diff-sha.sh b/diff-sha.sh index 9798bfea..26f8bcc3 100644 --- a/diff-sha.sh +++ b/diff-sha.sh @@ -61,7 +61,6 @@ if [[ -z $GITHUB_EVENT_PULL_REQUEST_BASE_REF ]]; then echo "Fetching remote refs..." # shellcheck disable=SC2086 git fetch $EXTRA_ARGS -u --progress --deepen="$INPUT_FETCH_DEPTH" origin +refs/heads/"$CURRENT_BRANCH":refs/remotes/origin/"$CURRENT_BRANCH" 1>/dev/null - git branch --track "$CURRENT_BRANCH" origin/"$CURRENT_BRANCH" 1>/dev/null || true fi echo "::debug::Getting HEAD SHA..."