From 4c8cbf5b43934544a0c628a43ecfe1536298d010 Mon Sep 17 00:00:00 2001 From: Khaled Mashaly Date: Tue, 1 Aug 2023 15:11:15 +0300 Subject: [PATCH 1/2] chore(ci): move message commit to discord notification description --- .github/workflows/discord-notifications.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/discord-notifications.yml b/.github/workflows/discord-notifications.yml index 58e5819e28..3e6ae1c475 100644 --- a/.github/workflows/discord-notifications.yml +++ b/.github/workflows/discord-notifications.yml @@ -19,9 +19,8 @@ jobs: -d '{ "embeds": [ { - "title": "oss build success - - ${{ github.event.workflow_run.head_commit.message }} - - ${{ github.event.workflow_run.name }} #${{ github.event.workflow_run.run_number }}", + "title": "${{ github.event.repository.name }} build success - ${{ github.event.workflow_run.name }} #${{ github.event.workflow_run.run_number }}", + "description": "${{ github.event.workflow_run.head_commit.message }}" "url": "${{ github.event.workflow_run.html_url }}", "color": 39236 } @@ -39,7 +38,8 @@ jobs: -d '{ "embeds": [ { - "title": "oss build failure - ${{ github.event.workflow_run.name }} #${{ github.event.workflow_run.run_number }}", + "title": "${{ github.event.repository.name }} build failure - ${{ github.event.workflow_run.name }} #${{ github.event.workflow_run.run_number }}", + "description": "${{ github.event.workflow_run.head_commit.message }}" "url": "${{ github.event.workflow_run.html_url }}", "color": 13565967 } From 8b24fe0f136124ed7bd821421a3d0023c3fc7a73 Mon Sep 17 00:00:00 2001 From: Khaled Mashaly Date: Tue, 1 Aug 2023 15:14:50 +0300 Subject: [PATCH 2/2] chore(ci): send discord notifications for main branch only --- .github/workflows/discord-notifications.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/discord-notifications.yml b/.github/workflows/discord-notifications.yml index 3e6ae1c475..b8951ff41f 100644 --- a/.github/workflows/discord-notifications.yml +++ b/.github/workflows/discord-notifications.yml @@ -6,7 +6,7 @@ on: - "Release Pieces" - "build-cloud-nx" types: [completed] - branches: [main, chore/github-actions-notifications-on-discord] + branches: [main] jobs: on-success: