From 9351c239aa60841ae02f00f6bd6120649297ce37 Mon Sep 17 00:00:00 2001 From: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com> Date: Wed, 29 Jan 2025 01:21:05 -0800 Subject: [PATCH] Validate changie for merges to main --- .github/workflows/changie-pr.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/changie-pr.yml b/.github/workflows/changie-pr.yml index 412ee8b5b9..4cf8e651ae 100644 --- a/.github/workflows/changie-pr.yml +++ b/.github/workflows/changie-pr.yml @@ -23,6 +23,15 @@ jobs: - name: Install dependencies run: npm ci + # Validate that changes exist + - name: Check for Changie entries + run: | + if [ -z "$(ls -A .changes/unreleased 2>/dev/null)" ]; then + echo "Error: No Changie entries found in .changes/unreleased/" + echo "Please run 'npm run changie new' and commit the generated change file" + exit 1 + fi + # Use Changie to batch changes and get the next version - name: Batch changes id: batch