From 00a9f443335029fa61688b872876231825dff4aa Mon Sep 17 00:00:00 2001 From: "Andrew M." Date: Sun, 8 Sep 2024 23:17:00 +0300 Subject: [PATCH] Fix discord webhook --- .github/workflows/pipeline.yml | 35 ++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index c81f97bd..f211d77d 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -151,14 +151,16 @@ jobs: embed-title : "${{ github.event.commits[0].author.name }}" embed-color: 3659647 embed-timestamp: ${{ env.NOW }} - embed-description: > - "Commit\n - `${{ github.event.head_commit.message }} (${{ github.sha }})`\n - from branch `${{ env.BRANCH_NAME }}` has been successfully built.\n\n - Release URL:\n - https://github.com/CommitteeOfZero/impacto/releases/tag/${{ needs.get_version.outputs.version }}\n\n - Details:\n - ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + embed-description: | + Commit + `${{ github.event.head_commit.message }} (${{ github.sha }})` + from branch `${{ env.BRANCH_NAME }}` has been successfully built. + + Release URL: + https://github.com/CommitteeOfZero/impacto/releases/tag/${{ needs.get_version.outputs.version }} + + Details: + ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} notify_fail: name: Notify failure runs-on: ubuntu-22.04 @@ -193,12 +195,13 @@ jobs: embed-title : "${{ github.event.commits[0].author.name }}" embed-color: 16711680 embed-timestamp: ${{ steps.date.outputs.NOW }} - embed-description: > - "Commit\n - `${{ github.event.head_commit.message }} (${{ github.sha }})`\n - from branch `${{ env.BRANCH_NAME }}` has failed build.\n\n - Job status:\n + embed-description: | + Commit + `${{ github.event.head_commit.message }} (${{ github.sha }})` + from branch `${{ env.BRANCH_NAME }}` has failed build. + + Job status: + ${{join(steps.get_jobs_status.outputs.*, '\n')}} - ${{join(steps.get_jobs_status.outputs.*, '\n')}}\n\n - Details:\n - ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + Details: + ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}