Skip to content

Commit

Permalink
ci: xtrace qubesbuilder up-to-date check
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-grande committed Jun 22, 2024
1 parent a6194e0 commit 07465e7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@ jobs:
with:
fetch-depth: 0
- uses: actions/setup-python@v5
- name: Test if .qubesbuilder is up-to-date
run: sh -x ./scripts/qubesbuilder-gen.sh test
env:
SPEC_VENDOR: Github Actions
- uses: pre-commit/[email protected]

- name: Lint commits
# yamllint disable-line rule:line-length
run: |
Expand Down
2 changes: 1 addition & 1 deletion scripts/qubesbuilder-gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/)"
Expand Down
8 changes: 8 additions & 0 deletions scripts/spec-get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down

0 comments on commit 07465e7

Please sign in to comment.