Skip to content

Commit

Permalink
Switch wait from Sonatype to Maven Central
Browse files Browse the repository at this point in the history
  • Loading branch information
markpatton committed Dec 15, 2023
1 parent fa9373c commit ee560df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/actions/maven-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit ee560df

Please sign in to comment.