mirror of
https://github.com/ben-grande/qusal.git
synced 2024-10-01 02:35:49 -04:00
ci: set spec vendor as git user.name is unset
Fixes: https://github.com/ben-grande/qusal/issues/67
This commit is contained in:
parent
a6194e0364
commit
ac6f707bf5
3
.github/workflows/main.yaml
vendored
3
.github/workflows/main.yaml
vendored
@ -46,7 +46,8 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
- uses: pre-commit/action@v3.0.1
|
- uses: pre-commit/action@v3.0.1
|
||||||
|
env:
|
||||||
|
SPEC_VENDOR: Github Actions
|
||||||
- name: Lint commits
|
- name: Lint commits
|
||||||
# yamllint disable-line rule:line-length
|
# yamllint disable-line rule:line-length
|
||||||
run: |
|
run: |
|
||||||
|
@ -15,7 +15,7 @@ intended_target="${target}"
|
|||||||
if test "${1-}" = "test"; then
|
if test "${1-}" = "test"; then
|
||||||
tmpdir="$(mktemp -d)"
|
tmpdir="$(mktemp -d)"
|
||||||
target="${tmpdir}/.qubesbuilder"
|
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
|
fi
|
||||||
ignored="$(git ls-files --exclude-standard --others --ignored salt/)"
|
ignored="$(git ls-files --exclude-standard --others --ignored salt/)"
|
||||||
untracked="$(git ls-files --exclude-standard --others salt/)"
|
untracked="$(git ls-files --exclude-standard --others salt/)"
|
||||||
|
@ -62,6 +62,14 @@ packager="${SPEC_PACKAGER:-"${vendor}"}"
|
|||||||
url="${SPEC_URL:-"https://github.com/ben-grande/qusal"}"
|
url="${SPEC_URL:-"https://github.com/ben-grande/qusal"}"
|
||||||
bug_url="${SPEC_BUGURL:-"${url}/issues"}"
|
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="${group}-${name}"
|
||||||
project_dir="salt/${name}"
|
project_dir="salt/${name}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user