Skip to content

Commit

Permalink
chore: update test (#888)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Dec 19, 2022
1 parent 349b9cd commit a2b1e5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Expand Up @@ -7,7 +7,6 @@ on:
- "**"
pull_request:
types:
- closed
- opened
- synchronize
- reopened
Expand Down
6 changes: 2 additions & 4 deletions diff-sha.sh
Expand Up @@ -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..."
Expand Down

0 comments on commit a2b1e5d

Please sign in to comment.