Skip to content

Commit 0624a27

Browse files
committed
refactor: Make code more readable
1 parent d48ce57 commit 0624a27

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

build.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,12 @@ echo '::group::Publishing'
5151
git remote add aur "ssh://aur@aur.archlinux.org/${pkgname}.git"
5252
git add -fv PKGBUILD .SRCINFO
5353
case "$allow_empty_commits" in
54-
true) git commit --allow-empty -m "$commit_message" ;;
55-
false) git diff-index --quiet HEAD || git commit -m "$commit_message" ;; # use `git diff-index --quiet HEAD ||` to avoid error
54+
true)
55+
git commit --allow-empty -m "$commit_message"
56+
;;
57+
false)
58+
git diff-index --quiet HEAD || git commit -m "$commit_message" # use `git diff-index --quiet HEAD ||` to avoid error
59+
;;
5660
*)
5761
echo "::error::Invalid Value: inputs.allow_empty_commits is neither 'true' nor 'false': '$allow_empty_commits'"
5862
exit 2

0 commit comments

Comments
 (0)