updated action.yml

This commit is contained in:
Tonye Jack 2022-08-20 21:18:34 -06:00
parent 312a368eff
commit 7f4d2ba1d7

View File

@ -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 -1 --format="%H" --date=local --since="${{ inputs.since }}") 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 }}"