From bec2dcab2278a7bc8b93aa3e5b6d9d1edd6f4ea8 Mon Sep 17 00:00:00 2001 From: Guian Gumpac Date: Tue, 27 Aug 2024 09:40:04 -0700 Subject: [PATCH] Add cleaning up for failures Signed-off-by: Guian Gumpac --- .github/workflows/java-cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/java-cd.yml b/.github/workflows/java-cd.yml index a5eb0dcb57..d42118c375 100644 --- a/.github/workflows/java-cd.yml +++ b/.github/workflows/java-cd.yml @@ -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