Skip to content

Commit

Permalink
Merge pull request #627 from tj-actions/fix/bug-with-setting-the-last…
Browse files Browse the repository at this point in the history
…-remote-commit
  • Loading branch information
jackton1 committed Sep 13, 2022
2 parents 6e12407 + 86eef8c commit b0bd577
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Expand Up @@ -166,7 +166,7 @@ runs:
echo "::set-output name=base_sha::${{ inputs.base_sha }}"
elif [[ "${{ inputs.since_last_remote_commit }}" == "true" ]]; then
LAST_REMOTE_COMMIT="${{ github.event.before }}"
if [[ -z "$LAST_REMOTE_COMMIT" && "$LAST_REMOTE_COMMIT" != "0000000000000000000000000000000000000000" ]]; then
if [[ -z "$LAST_REMOTE_COMMIT" || "$LAST_REMOTE_COMMIT" == "0000000000000000000000000000000000000000" ]]; then
LAST_REMOTE_COMMIT=$(git rev-parse $(git branch -r --sort=-committerdate | head -1))
fi
if [[ "${{ inputs.sha }}" == "$LAST_REMOTE_COMMIT" ]]; then
Expand Down

0 comments on commit b0bd577

Please sign in to comment.