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 <[email protected]>
  • Loading branch information
GumpacG committed Aug 27, 2024
1 parent 2aa38cd commit 8f61f0f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/java-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,10 @@ jobs:
run: |
echo "BEARER_TOKEN=$(echo "${{ secrets.CENTRAL_TOKEN_USERNAME }}:${{ secrets.CENTRAL_TOKEN_PASSWORD }}" | base64)" >> $GITHUB_ENV
echo "DEPLOYMENT_ID=6a48b2c5-c3c5-4941-bd38-6011b0985ae5" >> $GITHUB_ENV
echo $DEPLOYMENT_STATUS
echo $DEPLOYMENT_ID
export DEPLOYMENT_STATUS=`curl --request POST \
--header "Authorization: Bearer ${{ env.BEARER_TOKEN }}" \
"https://central.sonatype.com/api/v1/publisher/status?id=${{ env.DEPLOYMENT_ID }}" \
| jq '.deploymentState'`
if [[ $DEPLOYMENT_STATUS -ne ""VALIDATED"" || $DEPLOYMENT_STATUS -eq null ]]; then exit 1 ; fi
- uses: actions/checkout@v4
Expand Down

0 comments on commit 8f61f0f

Please sign in to comment.