From a11fce213a9bebf16331b5f678fa2ccf239acc35 Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Wed, 11 Nov 2026 21:54:41 +0800 Subject: [PATCH] fix(ci): build the first nightly when no nightly tag exists yet --- .github/workflows/nightly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 111c5ed451..60d0d72710 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -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