mirror of
https://github.com/tj-actions/changed-files
synced 2024-12-17 13:47:20 +00:00
updated action.yml
This commit is contained in:
parent
7f4d2ba1d7
commit
8a141f1b25
1 changed files with 2 additions and 2 deletions
|
@ -159,7 +159,7 @@ runs:
|
||||||
- run: |
|
- run: |
|
||||||
# "Set base sha..."
|
# "Set base sha..."
|
||||||
if [[ -n "${{ inputs.since }}" ]]; then
|
if [[ -n "${{ inputs.since }}" ]]; then
|
||||||
BASE_SHA=$(git log --format="%h" --date=local --since="${{ inputs.since }}" --reverse | head -1)
|
BASE_SHA=$(git log --format="%H" --date=local --since="${{ inputs.since }}" --reverse | head -1)
|
||||||
echo "::set-output name=base_sha::$BASE_SHA"
|
echo "::set-output name=base_sha::$BASE_SHA"
|
||||||
elif [[ -n "${{ inputs.base_sha }}" ]]; then
|
elif [[ -n "${{ inputs.base_sha }}" ]]; then
|
||||||
echo "::set-output name=base_sha::${{ inputs.base_sha }}"
|
echo "::set-output name=base_sha::${{ inputs.base_sha }}"
|
||||||
|
@ -176,7 +176,7 @@ runs:
|
||||||
- run: |
|
- run: |
|
||||||
# "Set the sha..."
|
# "Set the sha..."
|
||||||
if [[ -n "${{ inputs.until }}" ]]; then
|
if [[ -n "${{ inputs.until }}" ]]; then
|
||||||
SHA=$(git log -1 --format="%h" --date=local --until="${{ inputs.until }}")
|
SHA=$(git log -1 --format="%H" --date=local --until="${{ inputs.until }}")
|
||||||
echo "::set-output name=sha::$SHA"
|
echo "::set-output name=sha::$SHA"
|
||||||
else
|
else
|
||||||
echo "::set-output name=sha::${{ inputs.sha }}"
|
echo "::set-output name=sha::${{ inputs.sha }}"
|
||||||
|
|
Loading…
Reference in a new issue