From 76e980bdfd4daab61ae42f4a9b4b6deede632c51 Mon Sep 17 00:00:00 2001 From: Dongie Agnir Date: Fri, 17 Apr 2026 15:44:49 -0700 Subject: [PATCH] Check release-to-maven-central.yml too release-to-mave-central.yml is the actual script currently used to release to Maven, but in case we ever need to go back to OSSRH, continue checking release-to-maven.yml --- .github/workflows/new-module-verification.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/new-module-verification.yml b/.github/workflows/new-module-verification.yml index 86e59840439..47e3f7d9f07 100644 --- a/.github/workflows/new-module-verification.yml +++ b/.github/workflows/new-module-verification.yml @@ -96,8 +96,16 @@ jobs: else echo "✅ Module is excluded from maven deploy command" fi + + # 2. Check if excluded from maven deploy command + if ! grep -q "$MODULE_NAME" buildspecs/release-to-maven-central.yml 2>/dev/null; then + echo "::error::Module $MODULE_NAME is not excluded from maven deploy command in buildspecs/release-to-maven-central.yml" + HAS_ERRORS=1 + else + echo "✅ Module is excluded from maven deploy command" + fi - # 2. Check if excluded from javadoc generation + # 3. Check if excluded from javadoc generation if ! grep -q "$MODULE_NAME" buildspecs/release-javadoc.yml 2>/dev/null; then echo "::error::Module $MODULE_NAME is not excluded from javadoc generation in buildspecs/release-javadoc.yml" HAS_ERRORS=1 @@ -105,7 +113,7 @@ jobs: echo "✅ Module is excluded from javadoc generation" fi - # 3. Check if Brazil import is skipped + # 4. Check if Brazil import is skipped if ! grep -q "\"$MODULE_NAME\".*\"skipImport\".*true" .brazil.json 2>/dev/null; then echo "::error::Module $MODULE_NAME is not configured to skip Brazil import in .brazil.json" HAS_ERRORS=1