fix(ci): build the first nightly when no nightly tag exists yet

Цей коміт міститься в:
l0ng-ai committed 2026-11-11 21:54:41 +08:00
1 джерело 0418a2ce01
коміт a11fce213a
1 file changed
+1 -1
+1 -1
Переглянути файл
@@ -47,7 +47,7 @@ jobs:
exit 0
fi
# No `nightly` tag yet (the first run): compare fails and the build goes on.
status="$(gh api "repos/$GH_REPO/compare/nightly...$sha" --jq .status 2>/dev/null || echo ahead)"
status="$(gh api "repos/$GH_REPO/compare/nightly...$sha" --jq .status 2>/dev/null)" || status=ahead
if [ "$status" != ahead ] && [ "$FORCE" != true ]; then
echo "::notice::$sha is not newer than the last nightly"
exit 0