diff --git a/.github/actions/maven-release/action.yml b/.github/actions/maven-release/action.yml index 36c0074e..66112cf9 100644 --- a/.github/actions/maven-release/action.yml +++ b/.github/actions/maven-release/action.yml @@ -25,7 +25,7 @@ runs: run: | goal="deploy" - if curl -f -s https://oss.sonatype.org/service/local/repositories/releases/content/org/eclipse/pass/$ARTIFACT/$RELEASE/ > /dev/null; then + if curl -f -s https://repo1.maven.org/maven2/org/eclipse/pass/$ARTIFACT/$RELEASE/ > /dev/null; then echo "Release $RELEASE already exists" goal="install" fi @@ -44,19 +44,19 @@ runs: fi fi - - name: Wait for Sonatype artifact + - name: Wait for Maven Central shell: bash run: | echo "Waiting for $ARTIFACT $RELEASE to be released." counter=0 - until curl -f -s https://oss.sonatype.org/service/local/repositories/releases/content/org/eclipse/pass/$ARTIFACT/$RELEASE/ > /dev/null + until curl -f -s https://repo1.maven.org/maven2/org/eclipse/pass/$ARTIFACT/$RELEASE/ > /dev/null do sleep 60 echo "." counter=$((counter+1)) - if [ "$counter" -gt 20 ]; then + if [ "$counter" -gt 30 ]; then echo "Timed out waiting for release" exit 1 fi