Skip to content

Commit

Permalink
Fix non force push branch
Browse files Browse the repository at this point in the history
  • Loading branch information
KSXGitHub committed Oct 3, 2020
1 parent e4e2474 commit e8d305d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,16 @@ false)
exit 2
;;
esac
force_push_flag=''
case "$force_push" in
true) force_push_flag='--force' ;;
false) force_push_flag='' ;;
true)
git push -v --force aur master
;;
false)
git push -v aur master
;;
*)
echo "::error::Invalid Value: inputs.force_push is neither 'true' nor 'false': '$force_push'"
exit 3
;;
esac
git push "$force_push_flag" -v aur master
echo '::endgroup::'

0 comments on commit e8d305d

Please sign in to comment.