From 188c17c19a0c32e944d9a4234d33702d3adfe143 Mon Sep 17 00:00:00 2001 From: natsuoto <279971144+natsuoto@users.noreply.github.com> Date: Thu, 16 Jul 2026 17:59:14 +0530 Subject: ci: skip the surface migration gate when the surface snapshot is first introduced --- .github/workflows/github-actions.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index 27048f7..6ad9eed 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -82,6 +82,10 @@ jobs: echo "PR marked [no-migration]; skipping the fragment requirement." exit 0 fi + if ! git cat-file -e "$BASE_SHA:.public-surface" 2>/dev/null; then + echo ".public-surface is introduced on this branch; no prior surface to migrate from." + exit 0 + fi if git diff --quiet "$BASE_SHA" "$HEAD_SHA" -- .public-surface; then echo "Public surface unchanged; no fragment required." exit 0 -- cgit v1.2.3