joininbox/ci
autoblitzbot 4f992c5333
fix(ci): fall back to GITHUB_REF_NAME when GITHUB_HEAD_REF is empty (#197)
* fix(ci): fall back to GITHUB_REF_NAME when GITHUB_HEAD_REF is empty

GITHUB_HEAD_REF is only set for pull_request events. On push to master
the branch argument was empty, so the build downloaded
https://raw.githubusercontent.com/openoms/joininbox//build_joininbox.sh
which 404s and fails the image build (wget exit 8).

Use ${GITHUB_HEAD_REF:-${GITHUB_REF_NAME}} so push builds use the
pushed branch name.

* fix(ci): fall back to master when branch arg is passed empty

The workflow-level fallback covers push events, but an explicitly passed
empty branch string (branch='') still defeated the scripts' master default
and produced the 404 on raw.githubusercontent.com/.../build_joininbox.sh.
Guard for empty in both build scripts as belt and braces.

---------

Co-authored-by: autoblitzbot <autoblitzbot@users.noreply.github.com>
2026-08-15 15:15:30 +02:00
..
amd64 fix(ci): fall back to GITHUB_REF_NAME when GITHUB_HEAD_REF is empty (#197) 2026-08-15 15:15:30 +02:00
arm64-rpi fix(ci): fall back to GITHUB_REF_NAME when GITHUB_HEAD_REF is empty (#197) 2026-08-15 15:15:30 +02:00