Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.

Commit b87d481

Browse files
authored
fix(chore): bugs autosquash always set true (#103)
* fix(chore): bugs autosquash always set true * fix(chore): autosquash input default as string
1 parent 5000741 commit b87d481

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ inputs:
88
autosquash:
99
description: Should the rebase autosquash fixup and squash commits
1010
required: false
11-
default: false
11+
default: 'false'
1212
branding:
1313
icon: git-pull-request
14-
color: purple
14+
color: purple

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ git fetch fork $HEAD_BRANCH
100100

101101
# do the rebase
102102
git checkout -b fork/$HEAD_BRANCH fork/$HEAD_BRANCH
103-
if [[ $INPUT_AUTOSQUASH -eq 'true' ]]; then
103+
if [[ $INPUT_AUTOSQUASH == 'true' ]]; then
104104
GIT_SEQUENCE_EDITOR=: git rebase -i --autosquash origin/$BASE_BRANCH
105105
else
106106
git rebase origin/$BASE_BRANCH

0 commit comments

Comments
 (0)