fixing pipeline stuff
Build and publish release / metadata (push) Successful in 2s
Build and publish release / build-and-release (push) Successful in 12m11s

This commit is contained in:
Koda committed 2026-10-17 20:20:28 +00:00
1 parent 781eea70a1
commit 8fa85b3eb7
4 files changed
+20 -32

No files matched your search

+1
View File
@@ -28,6 +28,7 @@ sdk_archive=$(curl -fsSL "${download_base}/" | grep -o "openwrt-sdk-${openwrt_re
work_dir="${RUNNER_TEMP:-/tmp}/openunifi-${architecture}-${version}"
rm -rf -- "$work_dir"
mkdir -p -- "$work_dir" "$repo_root/$output_dir"
trap 'rm -rf -- "$work_dir"' EXIT
curl -fL --retry 3 --output "$work_dir/$sdk_archive" "$download_base/$sdk_archive"
expected_sha=$(curl -fsSL "$download_base/sha256sums" | awk -v archive="$sdk_archive" '{ name=$2; sub(/^\*/, "", name); if (name == archive) { print $1; exit } }')
[[ -n $expected_sha ]] || { echo "no checksum found for $sdk_archive" >&2; exit 1; }