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 61ea71f commit 2aa38cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/java-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ 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
if [[ $DEPLOYMENT_STATUS -ne ""VALIDATED"" || $DEPLOYMENT_STATUS -eq null ]]; then exit 1 ; fi
- uses: actions/checkout@v4
Expand Down Expand Up @@ -258,6 +260,7 @@ jobs:
- name: Drop deployment if validation fails
if: ${{ failure() }}
run: |
echo "${{ env.DEPLOYMENT_ID }}"
curl --request DELETE \
--verbose \
--header "Authorization: Bearer ${{ env.BEARER_TOKEN }}" \
Expand Down

0 comments on commit 2aa38cd

Please sign in to comment.