From 9c8b32cd22d17fca2df97b5e805ff759e86ccb38 Mon Sep 17 00:00:00 2001 From: Robert Wlodarczyk Date: Sun, 25 Jun 2023 19:37:31 -0700 Subject: [PATCH] chore: add discord notification to cleanup. --- .github/workflows/cleanup.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml index 73053bf..1954a04 100644 --- a/.github/workflows/cleanup.yml +++ b/.github/workflows/cleanup.yml @@ -26,3 +26,13 @@ jobs: skip-tags: latest image-names: ${{ env.IMAGE_NAME }} token: ${{ secrets.GHCR_TOKEN }} + + - name: Send notification to Discord. + uses: sarisia/actions-status-discord@v1.12.0 + if: always() + with: + title: ${{ env.IMAGE_NAME }} + description: | + succeded cleanup : ${{ steps.cleanup-images.outputs.deleted }} + failed cleanup : ${{ steps.cleanup-images.outputs.failed }} + webhook: ${{ secrets.DISCORD_WEBHOOK }}