We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 294241a commit e139819Copy full SHA for e139819
.github/workflows/gradle-publish-base.yml
@@ -121,7 +121,7 @@ jobs:
121
if ${{ inputs.release_name == 'latest' }}; then
122
# SNAPSHOT version should always publish
123
echo "::set-output name=should_publish::true"
124
- elif curl -s -f -o /dev/null -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" "$METADATA_URL"; then
+ elif curl -s -f -o /dev/null -w "%{http_code}" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" "$METADATA_URL" | grep -q "^200$"; then
125
# Don't republish existing non-SNAPSHOT versions
126
echo "Maven package with version $VERSION already exists."
127
else
0 commit comments