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

Commit

Permalink
fix(chore): bugs autosquash always set true (#103)
Browse files Browse the repository at this point in the history
* fix(chore): bugs autosquash always set true

* fix(chore): autosquash input default as string
  • Loading branch information
adeherysh authored Dec 13, 2022
1 parent 5000741 commit b87d481
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ inputs:
autosquash:
description: Should the rebase autosquash fixup and squash commits
required: false
default: false
default: 'false'
branding:
icon: git-pull-request
color: purple
color: purple
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ git fetch fork $HEAD_BRANCH

# do the rebase
git checkout -b fork/$HEAD_BRANCH fork/$HEAD_BRANCH
if [[ $INPUT_AUTOSQUASH -eq 'true' ]]; then
if [[ $INPUT_AUTOSQUASH == 'true' ]]; then
GIT_SEQUENCE_EDITOR=: git rebase -i --autosquash origin/$BASE_BRANCH
else
git rebase origin/$BASE_BRANCH
Expand Down

0 comments on commit b87d481

Please sign in to comment.