aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/github-actions.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/github-actions.yml')
-rw-r--r--.github/workflows/github-actions.yml4
1 files changed, 4 insertions, 0 deletions
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