From c04bf9f82b1bf06aae417473bc3cc79c8e9ed21c Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Mon, 22 Dec 2025 20:56:03 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20ajouter=20une=20notification=20Discord?= =?UTF-8?q?=20pour=20le=20statut=20de=20d=C3=A9ploiement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cloudflare.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cloudflare.yml b/.github/workflows/cloudflare.yml index afe9e92..9f2a2b8 100644 --- a/.github/workflows/cloudflare.yml +++ b/.github/workflows/cloudflare.yml @@ -58,4 +58,19 @@ jobs: env: CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - BRANCH_NAME: ${{ github.head_ref || github.ref_name }} \ No newline at end of file + BRANCH_NAME: ${{ github.head_ref || github.ref_name }} + + - name: Discord Notification + uses: sarisia/actions-status-discord@v1 + if: always() # S'exécute même si le build plante + with: + webhook: ${{ secrets.DISCORD_WEBHOOK }} + status: ${{ job.status }} + title: "Déploiement Portfolio" + description: | + Build terminé sur la branche **${{ github.ref_name }}**. + Commit: `${{ github.sha }}` par ${{ github.actor }}. + nofail: false + nodetail: false + image: "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png" + username: "GitHub Actions" \ No newline at end of file