From 1f907ee3bb9623c6a98b8c9585d2d4cb1fb9d707 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sat, 24 Sep 2022 13:07:33 -0600 Subject: [PATCH] feat: make since_last_remote the default for push events --- action.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/action.yml b/action.yml index 28a4e1a7..70c902b7 100644 --- a/action.yml +++ b/action.yml @@ -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 @@ -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))