Skip to content

Commit d48ce57

Browse files
committed
Use github actions format
1 parent 3e18862 commit d48ce57

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ git add -fv PKGBUILD .SRCINFO
5353
case "$allow_empty_commits" in
5454
true) git commit --allow-empty -m "$commit_message" ;;
5555
false) git diff-index --quiet HEAD || git commit -m "$commit_message" ;; # use `git diff-index --quiet HEAD ||` to avoid error
56-
*) echo 'The option "allow_empty_commits" should be either "true" or "false".' && false ;;
56+
*)
57+
echo "::error::Invalid Value: inputs.allow_empty_commits is neither 'true' nor 'false': '$allow_empty_commits'"
58+
exit 2
59+
;;
5760
esac
5861
git push --force-with-lease -v aur master
5962
echo '::endgroup::'

0 commit comments

Comments
 (0)