ci: set spec vendor as git user.name is unset

Fixes: https://github.com/ben-grande/qusal/issues/67
This commit is contained in:
Ben Grande 2024-06-22 12:23:46 +02:00
parent a6194e0364
commit ac6f707bf5
No known key found for this signature in database
GPG key ID: 00C64E14F51F9E56
3 changed files with 11 additions and 2 deletions

View file

@ -62,6 +62,14 @@ packager="${SPEC_PACKAGER:-"${vendor}"}"
url="${SPEC_URL:-"https://github.com/ben-grande/qusal"}"
bug_url="${SPEC_BUGURL:-"${url}/issues"}"
if test -z "${group}" || test -z "${vendor}" || test -z "${packager}" \
|| test -z "${url}" || test -z "${bug_url}"
then
echo "At least one empty var: group, vendor, packager, url, bug_url" >&2
exit 1
fi
project="${group}-${name}"
project_dir="salt/${name}"