Skip to content

Commit

Permalink
feat: Use previous commit when since_last_remote_commit is set to true (
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Feb 18, 2022
1 parent 32d6fb2 commit 4daffba
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions action.yml
Expand Up @@ -123,12 +123,8 @@ runs:
# "Set base sha..."
if [[ -n "${{ inputs.base_sha }}" ]]; then
echo "::set-output name=base_sha::${{ inputs.base_sha }}"
elif [[ "${{ inputs.since_last_remote_commit }}" == "true" ]]; then
if [[ "${{ github.event.before }}" != "0000000000000000000000000000000000000000" ]]; then
elif [[ "${{ inputs.since_last_remote_commit }}" == "true" && "${{ github.event.before }}" != "0000000000000000000000000000000000000000" ]]; then
echo "::set-output name=base_sha::${{ github.event.before }}"
else
echo "::set-output name=base_sha::${{ github.sha }}"
fi
fi
id: base-sha
shell: bash
Expand Down

0 comments on commit 4daffba

Please sign in to comment.