mirror of
https://github.com/tj-actions/changed-files
synced 2025-02-21 05:28:14 +00:00
chore: update test (#888)
This commit is contained in:
parent
349b9cd596
commit
a2b1e5dbb9
2 changed files with 2 additions and 5 deletions
1
.github/workflows/test.yml
vendored
1
.github/workflows/test.yml
vendored
|
@ -7,7 +7,6 @@ on:
|
|||
- "**"
|
||||
pull_request:
|
||||
types:
|
||||
- closed
|
||||
- opened
|
||||
- synchronize
|
||||
- reopened
|
||||
|
|
|
@ -194,12 +194,10 @@ else
|
|||
|
||||
if [[ -z $INPUT_BASE_SHA ]]; then
|
||||
if [[ "$INPUT_SINCE_LAST_REMOTE_COMMIT" == "true" ]]; then
|
||||
echo "::debug::Fetching remote current branch..."
|
||||
|
||||
PREVIOUS_SHA=$GITHUB_EVENT_BEFORE
|
||||
|
||||
|
||||
if ! git rev-parse --quiet --verify "$PREVIOUS_SHA^{commit}" 1>/dev/null 2>&1; then
|
||||
PREVIOUS_SHA=$(git rev-parse origin/"$CURRENT_BRANCH")
|
||||
PREVIOUS_SHA=$GITHUB_EVENT_PULL_REQUEST_BASE_SHA
|
||||
fi
|
||||
else
|
||||
echo "::debug::Fetching remote target branch..."
|
||||
|
|
Loading…
Add table
Reference in a new issue