From eb2066180c4345d693c8e7dcbf6bff913dbc9528 Mon Sep 17 00:00:00 2001 From: Laird Nelson Date: Tue, 14 Nov 2023 08:11:03 -0800 Subject: [PATCH] Iterating Signed-off-by: Laird Nelson --- .github/workflows/mvn-release-prepare-perform.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/mvn-release-prepare-perform.yaml b/.github/workflows/mvn-release-prepare-perform.yaml index 6be2176..709d3f0 100644 --- a/.github/workflows/mvn-release-prepare-perform.yaml +++ b/.github/workflows/mvn-release-prepare-perform.yaml @@ -87,8 +87,15 @@ jobs: set +e - mvn --batch-mode ${MVN_DEBUG} --errors ${MVN_TRANSFER_LOGGING} release:perform + { mvn --batch-mode ${MVN_DEBUG} --errors ${MVN_TRANSFER_LOGGING} release:perform -Darguments="${MVN_TRANSFER_LOGGING} -Dscmpublish.dryRun=${DRY_RUN} -Dscmpublish.pubScmUrl=${SCM_GIT_HTTPS_URL} -DskipTests -DstagingProfileId=${SONATYPE_OSSRH_STAGING_PROFILE_ID}" -DdryRun="${DRY_RUN}" -Dgoals="verify,post-site,scm-publish:publish-scm,deploy" -Dscm.url="${SCM_GIT_HTTPS_URL}" + | tee /dev/fd/3 + | { grep --invert-match --silent 'StagingDTO' && cat /dev/null } + } 3>&1 + && + echo "Released ${scm_tag}" >> "${GITHUB_STEP_SUMMARY}" + || + { echo "Encountered Maven Central bug; may have released ${scm_tag} anyway" >> "${GITHUB_STEP_SUMMARY}"; exit 1; }