We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdb09ed commit 695685eCopy full SHA for 695685e
build.sh
@@ -12,6 +12,20 @@ allow_empty_commits=$INPUT_ALLOW_EMPTY_COMMITS
12
force_push=$INPUT_FORCE_PUSH
13
ssh_keyscan_types=$INPUT_SSH_KEYSCAN_TYPES
14
15
+assert_non_empty() {
16
+ name=$1
17
+ value=$2
18
+ if [[ -z "$value" ]]; then
19
+ echo "::error::Invalid Value: $name is empty." >&2
20
+ exit 1
21
+ fi
22
+}
23
+
24
+assert_non_empty inputs.pkgname "$pkgname"
25
+assert_non_empty inputs.commit_username "$commit_username"
26
+assert_non_empty inputs.commit_email "$commit_email"
27
+assert_non_empty inputs.ssh_private_key "$ssh_private_key"
28
29
export HOME=/home/builder
30
31
echo '::group::Adding aur.archlinux.org to known hosts'
0 commit comments