Skip to content

Commit 4daffba

Browse files
authored
feat: Use previous commit when since_last_remote_commit is set to true (#388)
1 parent 32d6fb2 commit 4daffba

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

action.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,8 @@ runs:
123123
# "Set base sha..."
124124
if [[ -n "${{ inputs.base_sha }}" ]]; then
125125
echo "::set-output name=base_sha::${{ inputs.base_sha }}"
126-
elif [[ "${{ inputs.since_last_remote_commit }}" == "true" ]]; then
127-
if [[ "${{ github.event.before }}" != "0000000000000000000000000000000000000000" ]]; then
126+
elif [[ "${{ inputs.since_last_remote_commit }}" == "true" && "${{ github.event.before }}" != "0000000000000000000000000000000000000000" ]]; then
128127
echo "::set-output name=base_sha::${{ github.event.before }}"
129-
else
130-
echo "::set-output name=base_sha::${{ github.sha }}"
131-
fi
132128
fi
133129
id: base-sha
134130
shell: bash

0 commit comments

Comments
 (0)