From 75feed6f2abb9e3c2fddb7b99b832dc9baf3070d Mon Sep 17 00:00:00 2001 From: Ade Hery Shopyan <51158020+adeherysh@users.noreply.github.com> Date: Sat, 30 Jul 2022 16:37:24 +0700 Subject: [PATCH 1/2] fix(chore): bugs autosquash always set true --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index e776c9d..c251a33 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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 From c20769a4d27c370bb475a327f2ca3609a3744eb0 Mon Sep 17 00:00:00 2001 From: Ade Hery Shopyan <51158020+adeherysh@users.noreply.github.com> Date: Sat, 30 Jul 2022 16:40:42 +0700 Subject: [PATCH 2/2] fix(chore): autosquash input default as string --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index fd82666..ba526f0 100644 --- a/action.yml +++ b/action.yml @@ -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 \ No newline at end of file + color: purple