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 cb36e42 commit 4b4cbc6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/java-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,5 +260,8 @@ jobs:
- name: Drop deployment if validation fails
if: ${{ failure() }}
run: |
echo ${{ env.DEPLOYMENT_ID }}
curl --request DELETE \
--verbose \
--header "Authorization: Bearer $BEARER_TOKEN" \
"https://central.sonatype.com/api/v1/publisher/deployment/${{ env.DEPLOYMENT_ID }}"

0 comments on commit 4b4cbc6

Please sign in to comment.