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

@ -46,7 +46,8 @@ jobs:
fetch-depth: 0
- uses: actions/setup-python@v5
- uses: pre-commit/action@v3.0.1
env:
SPEC_VENDOR: Github Actions
- name: Lint commits
# yamllint disable-line rule:line-length
run: |

View File

@ -15,7 +15,7 @@ intended_target="${target}"
if test "${1-}" = "test"; then
tmpdir="$(mktemp -d)"
target="${tmpdir}/.qubesbuilder"
trap 'rm -rf -- "${tmpdir}"' EXIT INT HUP QUIT ABRT
trap 'ec="$?"; rm -rf -- "${tmpdir}"; exit "$ec"' EXIT INT HUP QUIT ABRT
fi
ignored="$(git ls-files --exclude-standard --others --ignored salt/)"
untracked="$(git ls-files --exclude-standard --others salt/)"

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}"