Skip to content

Commit 1926819

Browse files
authored
Check release-to-maven-central.yml too (#6877)
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
1 parent 942bdd8 commit 1926819

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/new-module-verification.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,24 @@ jobs:
9696
else
9797
echo "✅ Module is excluded from maven deploy command"
9898
fi
99+
100+
# 2. Check if excluded from maven deploy command
101+
if ! grep -q "$MODULE_NAME" buildspecs/release-to-maven-central.yml 2>/dev/null; then
102+
echo "::error::Module $MODULE_NAME is not excluded from maven deploy command in buildspecs/release-to-maven-central.yml"
103+
HAS_ERRORS=1
104+
else
105+
echo "✅ Module is excluded from maven deploy command"
106+
fi
99107
100-
# 2. Check if excluded from javadoc generation
108+
# 3. Check if excluded from javadoc generation
101109
if ! grep -q "$MODULE_NAME" buildspecs/release-javadoc.yml 2>/dev/null; then
102110
echo "::error::Module $MODULE_NAME is not excluded from javadoc generation in buildspecs/release-javadoc.yml"
103111
HAS_ERRORS=1
104112
else
105113
echo "✅ Module is excluded from javadoc generation"
106114
fi
107115
108-
# 3. Check if Brazil import is skipped
116+
# 4. Check if Brazil import is skipped
109117
if ! grep -q "\"$MODULE_NAME\".*\"skipImport\".*true" .brazil.json 2>/dev/null; then
110118
echo "::error::Module $MODULE_NAME is not configured to skip Brazil import in .brazil.json"
111119
HAS_ERRORS=1

0 commit comments

Comments
 (0)