From 12c800d7ac6e5189bb55b5bb1e2a8578bd64dc7a Mon Sep 17 00:00:00 2001 From: Christophe Amory Date: Mon, 24 Nov 2025 11:31:34 +0100 Subject: [PATCH] fix: correct SNAPSHOT dependency check logic in release workflow --- .github/workflows/release.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9649c9c..2bf50b5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -51,11 +51,17 @@ jobs: - name: Check for SNAPSHOT dependencies working-directory: ${{ matrix.module }} run: | - if find . -name "pom.xml" -exec grep -l "SNAPSHOT" {} \;; then + echo "🔍 Checking for SNAPSHOT dependencies..." + SNAPSHOT_FILES=$(find . -name "pom.xml" -type f -exec grep -l "SNAPSHOT" {} \;) + if [ -n "$SNAPSHOT_FILES" ]; then echo "❌ ERROR: SNAPSHOT dependencies found in release build!" + echo "" + echo "Files containing SNAPSHOT:" + echo "$SNAPSHOT_FILES" exit 1 fi - echo "✅ No SNAPSHOT dependencies" + + echo "✅ No SNAPSHOT dependencies found" - name: Verify build working-directory: ${{ matrix.module }}