From 3d7cff98353eabf859b29cfbc2cd6903edebc66d Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sat, 24 Sep 2022 20:28:43 -0600 Subject: [PATCH 1/2] chore: remove logging the github context --- .github/workflows/test.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 93a6b334468..aa84ebbdbec 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -270,8 +270,6 @@ jobs: with: submodules: true fetch-depth: 0 - - name: Show github context - run: echo '${{ toJSON(github) }}' - name: Run changed-files with defaults id: changed-files uses: ./ From bc7fa5e550c761d48c1c0fbd2969ab547d77f855 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sat, 24 Sep 2022 20:52:05 -0600 Subject: [PATCH 2/2] Updated determining the remote sha --- diff-sha.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/diff-sha.sh b/diff-sha.sh index 812c105bfa1..c07ae21dd57 100644 --- a/diff-sha.sh +++ b/diff-sha.sh @@ -70,8 +70,12 @@ if [[ -z $GITHUB_BASE_REF ]]; then fi if [[ "$PREVIOUS_SHA" == "$CURRENT_SHA" ]]; then - INITIAL_COMMIT="true" - echo "::debug::Initial commit detected" + PREVIOUS_SHA=$(git rev-parse "$CURRENT_SHA^1") + + if [[ "$PREVIOUS_SHA" == "$CURRENT_SHA" ]]; then + INITIAL_COMMIT="true" + echo "::debug::Initial commit detected" + fi fi else PREVIOUS_SHA=$INPUT_BASE_SHA