Skip to content

Commit

Permalink
feat: make since_last_remote the default for push events
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Sep 24, 2022
1 parent fc8e459 commit 1f907ee
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions action.yml
Expand Up @@ -50,10 +50,6 @@ inputs:
base_sha:
description: "Specify a base commit SHA on used for comparing changes"
required: false
since_last_remote_commit:
description: "Use the last commit on the remote branch as the base_sha for push event."
required: false
default: "false"
since:
description: "Get changed files for commits whose timestamp is older than the given time"
required: false
Expand Down Expand Up @@ -160,7 +156,7 @@ runs:
echo "::set-output name=base_sha::$BASE_SHA"
elif [[ -n "${{ inputs.base_sha }}" ]]; then
echo "::set-output name=base_sha::${{ inputs.base_sha }}"
elif [[ "${{ inputs.since_last_remote_commit }}" == "true" ]]; then
else
LAST_REMOTE_COMMIT="${{ github.event.before }}"
if [[ -z "$LAST_REMOTE_COMMIT" || "$LAST_REMOTE_COMMIT" == "0000000000000000000000000000000000000000" ]]; then
LAST_REMOTE_COMMIT=$(git rev-parse $(git branch -r --sort=-committerdate | head -1))
Expand Down

0 comments on commit 1f907ee

Please sign in to comment.