mirror of
https://github.com/tj-actions/changed-files
synced 2025-01-05 09:35:54 +00:00
feat: Use previous commit when since_last_remote_commit is set to true (#388)
This commit is contained in:
parent
32d6fb28f0
commit
4daffbaee1
1 changed files with 1 additions and 5 deletions
|
@ -123,12 +123,8 @@ runs:
|
||||||
# "Set base sha..."
|
# "Set base sha..."
|
||||||
if [[ -n "${{ inputs.base_sha }}" ]]; then
|
if [[ -n "${{ inputs.base_sha }}" ]]; then
|
||||||
echo "::set-output name=base_sha::${{ inputs.base_sha }}"
|
echo "::set-output name=base_sha::${{ inputs.base_sha }}"
|
||||||
elif [[ "${{ inputs.since_last_remote_commit }}" == "true" ]]; then
|
elif [[ "${{ inputs.since_last_remote_commit }}" == "true" && "${{ github.event.before }}" != "0000000000000000000000000000000000000000" ]]; then
|
||||||
if [[ "${{ github.event.before }}" != "0000000000000000000000000000000000000000" ]]; then
|
|
||||||
echo "::set-output name=base_sha::${{ github.event.before }}"
|
echo "::set-output name=base_sha::${{ github.event.before }}"
|
||||||
else
|
|
||||||
echo "::set-output name=base_sha::${{ github.sha }}"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
id: base-sha
|
id: base-sha
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
Loading…
Reference in a new issue