From 795566bac819c67bf5fb98a98c63dafd6b4de309 Mon Sep 17 00:00:00 2001 From: Guian Gumpac Date: Tue, 27 Aug 2024 09:36:10 -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 a5f90a7cd6..e9810a4939 100644 --- a/.github/workflows/java-cd.yml +++ b/.github/workflows/java-cd.yml @@ -228,7 +228,7 @@ jobs: "https://central.sonatype.com/api/v1/publisher/status?id=123" \ | jq '.deploymentState'` printenv DEPLOYMENT_STATUS - if [[ $DEPLOYMENT_STATUS -ne "VALIDATED" ]]; then exit 1 ; fi + if [[ $DEPLOYMENT_STATUS -ne "VALIDATED" || $DEPLOYMENT_STATUS -eq null ]]; then exit 1 ; fi - uses: actions/checkout@v4 with: