mirror of
https://github.com/Darkatse/TauriTavern.git
synced 2026-10-19 15:45:12 +00:00
ci(quickjs): skip deb/rpm normalization when no Linux repo packages present
Align the publish-side Linux repo package gate with the best-effort strategy: if a partial run yields neither deb nor rpm artifacts, print a skip notice and exit 0 instead of failing the publish job on `test -ge 1`. Collector-level `--best-effort` already tolerates missing desktop artifacts; this removes the leftover hard gate that prevented publishing windows/mobile-only runs.
This commit is contained in:
parent
049566b439
commit
0b90283733
1 changed files with 7 additions and 4 deletions
11
.github/workflows/quickjs-feature-release.yml
vendored
11
.github/workflows/quickjs-feature-release.yml
vendored
|
|
@ -369,10 +369,13 @@ jobs:
|
|||
set -euo pipefail
|
||||
mapfile -t debs < <(find release-assets -type f -name '*.deb')
|
||||
mapfile -t rpms < <(find release-assets -type f -name '*.rpm')
|
||||
# Linux sources build deb+rpm per arch; release what succeeded.
|
||||
# A partial run may yield only one arch's packages.
|
||||
test "${#debs[@]}" -ge 1
|
||||
test "${#rpms[@]}" -ge 1
|
||||
# Best-effort: publish whatever Linux repo packages succeeded.
|
||||
# A partial run may yield only one arch, only debs, or only rpms;
|
||||
# if neither kind is present, skip this step entirely.
|
||||
if [[ "${#debs[@]}" -eq 0 && "${#rpms[@]}" -eq 0 ]]; then
|
||||
echo "No Linux repo packages (deb/rpm) found; skipping normalization."
|
||||
exit 0
|
||||
fi
|
||||
rpm_db="$RUNNER_TEMP/rpm-query-db"
|
||||
rpm --dbpath "$rpm_db" --initdb
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue