Skip to content

Commit e8d305d

Browse files
committed
Fix non force push branch
1 parent e4e2474 commit e8d305d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

build.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,16 @@ false)
6363
exit 2
6464
;;
6565
esac
66-
force_push_flag=''
6766
case "$force_push" in
68-
true) force_push_flag='--force' ;;
69-
false) force_push_flag='' ;;
67+
true)
68+
git push -v --force aur master
69+
;;
70+
false)
71+
git push -v aur master
72+
;;
7073
*)
7174
echo "::error::Invalid Value: inputs.force_push is neither 'true' nor 'false': '$force_push'"
7275
exit 3
7376
;;
7477
esac
75-
git push "$force_push_flag" -v aur master
7678
echo '::endgroup::'

0 commit comments

Comments
 (0)