Skip to content

Commit

Permalink
Merge pull request #661 from tj-actions/fix/error-retrieving-the-base…
Browse files Browse the repository at this point in the history
…-sha

fix: error retrieving the base sha
  • Loading branch information
jackton1 committed Oct 2, 2022
2 parents 5a03253 + 3751de2 commit 6a459d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion get-base-sha.sh
Expand Up @@ -32,7 +32,7 @@ elif [[ "$INPUT_SINCE_LAST_REMOTE_COMMIT" == "true" ]]; then
LAST_REMOTE_COMMIT=$(git rev-parse "$(git branch -r --sort=-committerdate | head -1 | xargs)")
fi
if [[ "$INPUT_SHA" == "$LAST_REMOTE_COMMIT" ]]; then
LAST_REMOTE_COMMIT=$(git rev-parse "$INPUT_SHA^1")
LAST_REMOTE_COMMIT=$(git rev-parse "$INPUT_SHA"^1)
fi
echo "::set-output name=base_sha::$LAST_REMOTE_COMMIT"
fi

0 comments on commit 6a459d2

Please sign in to comment.