diff --git a/.github/actions/maven-release/action.yml b/.github/actions/maven-release/action.yml index e6200c49..7024089d 100644 --- a/.github/actions/maven-release/action.yml +++ b/.github/actions/maven-release/action.yml @@ -21,13 +21,13 @@ runs: echo "Release $RELEASE already exists" goal="install" fi - + set | grep MAVEN echo mvn -B -U -V -ntp -P release -DstagingProgressTimeoutMinutes=15 clean $goal | tee release.log code=${PIPESTATUS[0]} marker1="Remote staging repositories are being released" marker2="Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin" - + if [ "$code" -ne "0" ]; then if grep -q "$marker1" release.log && grep -q "$marker2" release.log; then echo "Failed cleaning up after pushing to Sonatype, but it may have succeeded anyway."