Skip to content

Commit

Permalink
Add cleaning up for failures
Browse files Browse the repository at this point in the history
Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>
  • Loading branch information
GumpacG committed Aug 27, 2024
1 parent d526049 commit bec2dca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/java-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ jobs:
export DEPLOYMENT_ID=6a48b2c5-c3c5-4941-bd38-6011b0985ae5
export DEPLOYMENT_STATUS=`curl --request POST \
--header "Authorization: Bearer $BEARER_TOKEN" \
"https://central.sonatype.com/api/v1/publisher/status?id=123" \
"https://central.sonatype.com/api/v1/publisher/status?id=$DEPLOYMENT_ID" \
| jq '.deploymentState'`
if [[ $DEPLOYMENT_STATUS -ne "VALIDATED" || $DEPLOYMENT_STATUS -eq null ]]; then exit 1 ; fi
Expand Down

0 comments on commit bec2dca

Please sign in to comment.