From 3782ebc835a60b0126fb3ad5269e98e40d38d475 Mon Sep 17 00:00:00 2001 From: Silvano Cerza <3314350+silvanocerza@users.noreply.github.com> Date: Thu, 30 Mar 2023 10:56:20 +0200 Subject: [PATCH] ci: Fix slack messages formatting (#4556) * Fix slack messages formatting * Remove unneeded file --- .../config/failure-message-slack-payload.json | 48 - .github/workflows/compliance.yml | 100 +- .github/workflows/examples-tests.yml | 50 +- .github/workflows/rest_api_tests.yml | 100 +- .github/workflows/tests.yml | 867 +++++++++++++++++- 5 files changed, 1095 insertions(+), 70 deletions(-) delete mode 100644 .github/config/failure-message-slack-payload.json diff --git a/.github/config/failure-message-slack-payload.json b/.github/config/failure-message-slack-payload.json deleted file mode 100644 index 1a947777d..000000000 --- a/.github/config/failure-message-slack-payload.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "blocks": [ - { - "type": "context", - "elements": [ - { - "type": "image", - "image_url": "https://avatars.githubusercontent.com/u/${{ github.author_id }}?v=4", - "alt_text": "Actor" - }, - { - "type": "mrkdwn", - "text": "**" - } - ] - }, - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "Job ${{ github.job }} in workflow " - } - }, - { - "type": "context", - "elements": [ - { - "type": "mrkdwn", - "text": "Triggered by ${{ github.event_name }} for ${{ github.ref_type }} `${{ github.ref_name }}`" - } - ] - }, - { - "type": "context", - "elements": [ - { - "type": "image", - "image_url": "https://github.githubassets.com/favicons/favicon.png", - "alt_text": "Github logo" - }, - { - "type": "mrkdwn", - "text": " Run " - } - ] - } - ] -} diff --git a/.github/workflows/compliance.yml b/.github/workflows/compliance.yml index 27d841ef4..e099fb643 100644 --- a/.github/workflows/compliance.yml +++ b/.github/workflows/compliance.yml @@ -52,7 +52,55 @@ jobs: - uses: slackapi/slack-github-action@v1.23.0 if: failure() && github.ref == 'refs/heads/main' with: - payload-file-path: .github/config/failure-message-slack-payload.json + payload: | + { + "blocks": [ + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://avatars.githubusercontent.com/u/${{ github.actor_id }}?v=4", + "alt_text": "Actor" + }, + { + "type": "mrkdwn", + "text": "**" + } + ] + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Job ${{ github.job }} in workflow " + } + }, + { + "type": "context", + "elements": [ + { + "type": "mrkdwn", + "text": "Triggered by ${{ github.event_name }} for ${{ github.ref_type }} `${{ github.ref_name }}`" + } + ] + }, + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://github.githubassets.com/favicons/favicon.png", + "alt_text": "Github logo" + }, + { + "type": "mrkdwn", + "text": " Run " + } + ] + } + ] + } check-license-compliance-gpu: if: ${{ !github.event.pull_request.head.repo.fork }} @@ -92,4 +140,52 @@ jobs: - uses: slackapi/slack-github-action@v1.23.0 if: failure() && github.ref == 'refs/heads/main' with: - payload-file-path: .github/config/failure-message-slack-payload.json + payload: | + { + "blocks": [ + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://avatars.githubusercontent.com/u/${{ github.actor_id }}?v=4", + "alt_text": "Actor" + }, + { + "type": "mrkdwn", + "text": "**" + } + ] + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Job ${{ github.job }} in workflow " + } + }, + { + "type": "context", + "elements": [ + { + "type": "mrkdwn", + "text": "Triggered by ${{ github.event_name }} for ${{ github.ref_type }} `${{ github.ref_name }}`" + } + ] + }, + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://github.githubassets.com/favicons/favicon.png", + "alt_text": "Github logo" + }, + { + "type": "mrkdwn", + "text": " Run " + } + ] + } + ] + } diff --git a/.github/workflows/examples-tests.yml b/.github/workflows/examples-tests.yml index 2118b6d09..18ce7d59f 100644 --- a/.github/workflows/examples-tests.yml +++ b/.github/workflows/examples-tests.yml @@ -48,4 +48,52 @@ jobs: - uses: slackapi/slack-github-action@v1.23.0 if: failure() && github.ref == 'refs/heads/main' with: - payload-file-path: .github/config/failure-message-slack-payload.json + payload: | + { + "blocks": [ + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://avatars.githubusercontent.com/u/${{ github.actor_id }}?v=4", + "alt_text": "Actor" + }, + { + "type": "mrkdwn", + "text": "**" + } + ] + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Job ${{ github.job }} in workflow " + } + }, + { + "type": "context", + "elements": [ + { + "type": "mrkdwn", + "text": "Triggered by ${{ github.event_name }} for ${{ github.ref_type }} `${{ github.ref_name }}`" + } + ] + }, + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://github.githubassets.com/favicons/favicon.png", + "alt_text": "Github logo" + }, + { + "type": "mrkdwn", + "text": " Run " + } + ] + } + ] + } diff --git a/.github/workflows/rest_api_tests.yml b/.github/workflows/rest_api_tests.yml index a48671211..aa3369ecd 100644 --- a/.github/workflows/rest_api_tests.yml +++ b/.github/workflows/rest_api_tests.yml @@ -66,7 +66,55 @@ jobs: - uses: slackapi/slack-github-action@v1.23.0 if: failure() && github.ref == 'refs/heads/main' with: - payload-file-path: .github/config/failure-message-slack-payload.json + payload: | + { + "blocks": [ + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://avatars.githubusercontent.com/u/${{ github.actor_id }}?v=4", + "alt_text": "Actor" + }, + { + "type": "mrkdwn", + "text": "**" + } + ] + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Job ${{ github.job }} in workflow " + } + }, + { + "type": "context", + "elements": [ + { + "type": "mrkdwn", + "text": "Triggered by ${{ github.event_name }} for ${{ github.ref_type }} `${{ github.ref_name }}`" + } + ] + }, + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://github.githubassets.com/favicons/favicon.png", + "alt_text": "Github logo" + }, + { + "type": "mrkdwn", + "text": " Run " + } + ] + } + ] + } rest_api: needs: black @@ -98,4 +146,52 @@ jobs: - uses: slackapi/slack-github-action@v1.23.0 if: failure() && github.ref == 'refs/heads/main' with: - payload-file-path: .github/config/failure-message-slack-payload.json + payload: | + { + "blocks": [ + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://avatars.githubusercontent.com/u/${{ github.actor_id }}?v=4", + "alt_text": "Actor" + }, + { + "type": "mrkdwn", + "text": "**" + } + ] + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Job ${{ github.job }} in workflow " + } + }, + { + "type": "context", + "elements": [ + { + "type": "mrkdwn", + "text": "Triggered by ${{ github.event_name }} for ${{ github.ref_type }} `${{ github.ref_name }}`" + } + ] + }, + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://github.githubassets.com/favicons/favicon.png", + "alt_text": "Github logo" + }, + { + "type": "mrkdwn", + "text": " Run " + } + ] + } + ] + } diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 50d09882b..39289d0f9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -80,7 +80,56 @@ jobs: - uses: slackapi/slack-github-action@v1.23.0 if: failure() && github.ref == 'refs/heads/main' with: - payload-file-path: .github/config/failure-message-slack-payload.json + payload: | + { + "blocks": [ + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://avatars.githubusercontent.com/u/${{ github.actor_id }}?v=4", + "alt_text": "Actor" + }, + { + "type": "mrkdwn", + "text": "**" + } + ] + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Job ${{ github.job }} in workflow " + } + }, + { + "type": "context", + "elements": [ + { + "type": "mrkdwn", + "text": "Triggered by ${{ github.event_name }} for ${{ github.ref_type }} `${{ github.ref_name }}`" + } + ] + }, + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://github.githubassets.com/favicons/favicon.png", + "alt_text": "Github logo" + }, + { + "type": "mrkdwn", + "text": " Run " + } + ] + } + ] + } + unit-tests: name: Unit / ${{ matrix.topic }} / ${{ matrix.os }} @@ -114,7 +163,56 @@ jobs: - uses: slackapi/slack-github-action@v1.23.0 if: failure() && github.ref == 'refs/heads/main' with: - payload-file-path: .github/config/failure-message-slack-payload.json + payload: | + { + "blocks": [ + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://avatars.githubusercontent.com/u/${{ github.actor_id }}?v=4", + "alt_text": "Actor" + }, + { + "type": "mrkdwn", + "text": "**" + } + ] + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Job ${{ github.job }} in workflow " + } + }, + { + "type": "context", + "elements": [ + { + "type": "mrkdwn", + "text": "Triggered by ${{ github.event_name }} for ${{ github.ref_type }} `${{ github.ref_name }}`" + } + ] + }, + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://github.githubassets.com/favicons/favicon.png", + "alt_text": "Github logo" + }, + { + "type": "mrkdwn", + "text": " Run " + } + ] + } + ] + } + integration-tests-elasticsearch: @@ -151,7 +249,56 @@ jobs: - uses: slackapi/slack-github-action@v1.23.0 if: failure() && github.ref == 'refs/heads/main' with: - payload-file-path: .github/config/failure-message-slack-payload.json + payload: | + { + "blocks": [ + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://avatars.githubusercontent.com/u/${{ github.actor_id }}?v=4", + "alt_text": "Actor" + }, + { + "type": "mrkdwn", + "text": "**" + } + ] + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Job ${{ github.job }} in workflow " + } + }, + { + "type": "context", + "elements": [ + { + "type": "mrkdwn", + "text": "Triggered by ${{ github.event_name }} for ${{ github.ref_type }} `${{ github.ref_name }}`" + } + ] + }, + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://github.githubassets.com/favicons/favicon.png", + "alt_text": "Github logo" + }, + { + "type": "mrkdwn", + "text": " Run " + } + ] + } + ] + } + integration-tests-sql: @@ -180,7 +327,56 @@ jobs: - uses: slackapi/slack-github-action@v1.23.0 if: failure() && github.ref == 'refs/heads/main' with: - payload-file-path: .github/config/failure-message-slack-payload.json + payload: | + { + "blocks": [ + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://avatars.githubusercontent.com/u/${{ github.actor_id }}?v=4", + "alt_text": "Actor" + }, + { + "type": "mrkdwn", + "text": "**" + } + ] + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Job ${{ github.job }} in workflow " + } + }, + { + "type": "context", + "elements": [ + { + "type": "mrkdwn", + "text": "Triggered by ${{ github.event_name }} for ${{ github.ref_type }} `${{ github.ref_name }}`" + } + ] + }, + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://github.githubassets.com/favicons/favicon.png", + "alt_text": "Github logo" + }, + { + "type": "mrkdwn", + "text": " Run " + } + ] + } + ] + } + integration-tests-opensearch: @@ -217,7 +413,56 @@ jobs: - uses: slackapi/slack-github-action@v1.23.0 if: failure() && github.ref == 'refs/heads/main' with: - payload-file-path: .github/config/failure-message-slack-payload.json + payload: | + { + "blocks": [ + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://avatars.githubusercontent.com/u/${{ github.actor_id }}?v=4", + "alt_text": "Actor" + }, + { + "type": "mrkdwn", + "text": "**" + } + ] + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Job ${{ github.job }} in workflow " + } + }, + { + "type": "context", + "elements": [ + { + "type": "mrkdwn", + "text": "Triggered by ${{ github.event_name }} for ${{ github.ref_type }} `${{ github.ref_name }}`" + } + ] + }, + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://github.githubassets.com/favicons/favicon.png", + "alt_text": "Github logo" + }, + { + "type": "mrkdwn", + "text": " Run " + } + ] + } + ] + } + integration-tests-dc: @@ -246,7 +491,56 @@ jobs: - uses: slackapi/slack-github-action@v1.23.0 if: failure() && github.ref == 'refs/heads/main' with: - payload-file-path: .github/config/failure-message-slack-payload.json + payload: | + { + "blocks": [ + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://avatars.githubusercontent.com/u/${{ github.actor_id }}?v=4", + "alt_text": "Actor" + }, + { + "type": "mrkdwn", + "text": "**" + } + ] + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Job ${{ github.job }} in workflow " + } + }, + { + "type": "context", + "elements": [ + { + "type": "mrkdwn", + "text": "Triggered by ${{ github.event_name }} for ${{ github.ref_type }} `${{ github.ref_name }}`" + } + ] + }, + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://github.githubassets.com/favicons/favicon.png", + "alt_text": "Github logo" + }, + { + "type": "mrkdwn", + "text": " Run " + } + ] + } + ] + } + integration-tests-faiss: @@ -275,7 +569,56 @@ jobs: - uses: slackapi/slack-github-action@v1.23.0 if: failure() && github.ref == 'refs/heads/main' with: - payload-file-path: .github/config/failure-message-slack-payload.json + payload: | + { + "blocks": [ + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://avatars.githubusercontent.com/u/${{ github.actor_id }}?v=4", + "alt_text": "Actor" + }, + { + "type": "mrkdwn", + "text": "**" + } + ] + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Job ${{ github.job }} in workflow " + } + }, + { + "type": "context", + "elements": [ + { + "type": "mrkdwn", + "text": "Triggered by ${{ github.event_name }} for ${{ github.ref_type }} `${{ github.ref_name }}`" + } + ] + }, + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://github.githubassets.com/favicons/favicon.png", + "alt_text": "Github logo" + }, + { + "type": "mrkdwn", + "text": " Run " + } + ] + } + ] + } + integration-tests-weaviate: @@ -314,7 +657,56 @@ jobs: - uses: slackapi/slack-github-action@v1.23.0 if: failure() && github.ref == 'refs/heads/main' with: - payload-file-path: .github/config/failure-message-slack-payload.json + payload: | + { + "blocks": [ + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://avatars.githubusercontent.com/u/${{ github.actor_id }}?v=4", + "alt_text": "Actor" + }, + { + "type": "mrkdwn", + "text": "**" + } + ] + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Job ${{ github.job }} in workflow " + } + }, + { + "type": "context", + "elements": [ + { + "type": "mrkdwn", + "text": "Triggered by ${{ github.event_name }} for ${{ github.ref_type }} `${{ github.ref_name }}`" + } + ] + }, + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://github.githubassets.com/favicons/favicon.png", + "alt_text": "Github logo" + }, + { + "type": "mrkdwn", + "text": " Run " + } + ] + } + ] + } + integration-tests-pinecone: @@ -345,7 +737,56 @@ jobs: - uses: slackapi/slack-github-action@v1.23.0 if: failure() && github.ref == 'refs/heads/main' with: - payload-file-path: .github/config/failure-message-slack-payload.json + payload: | + { + "blocks": [ + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://avatars.githubusercontent.com/u/${{ github.actor_id }}?v=4", + "alt_text": "Actor" + }, + { + "type": "mrkdwn", + "text": "**" + } + ] + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Job ${{ github.job }} in workflow " + } + }, + { + "type": "context", + "elements": [ + { + "type": "mrkdwn", + "text": "Triggered by ${{ github.event_name }} for ${{ github.ref_type }} `${{ github.ref_name }}`" + } + ] + }, + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://github.githubassets.com/favicons/favicon.png", + "alt_text": "Github logo" + }, + { + "type": "mrkdwn", + "text": " Run " + } + ] + } + ] + } + integration-tests-milvus: name: Integration / Milvus / ${{ matrix.os }} @@ -384,7 +825,56 @@ jobs: - uses: slackapi/slack-github-action@v1.23.0 if: failure() && github.ref == 'refs/heads/main' with: - payload-file-path: .github/config/failure-message-slack-payload.json + payload: | + { + "blocks": [ + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://avatars.githubusercontent.com/u/${{ github.actor_id }}?v=4", + "alt_text": "Actor" + }, + { + "type": "mrkdwn", + "text": "**" + } + ] + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Job ${{ github.job }} in workflow " + } + }, + { + "type": "context", + "elements": [ + { + "type": "mrkdwn", + "text": "Triggered by ${{ github.event_name }} for ${{ github.ref_type }} `${{ github.ref_name }}`" + } + ] + }, + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://github.githubassets.com/favicons/favicon.png", + "alt_text": "Github logo" + }, + { + "type": "mrkdwn", + "text": " Run " + } + ] + } + ] + } + integration-tests-memory: name: Integration / memory / ${{ matrix.os }} @@ -412,7 +902,56 @@ jobs: - uses: slackapi/slack-github-action@v1.23.0 if: failure() && github.ref == 'refs/heads/main' with: - payload-file-path: .github/config/failure-message-slack-payload.json + payload: | + { + "blocks": [ + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://avatars.githubusercontent.com/u/${{ github.actor_id }}?v=4", + "alt_text": "Actor" + }, + { + "type": "mrkdwn", + "text": "**" + } + ] + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Job ${{ github.job }} in workflow " + } + }, + { + "type": "context", + "elements": [ + { + "type": "mrkdwn", + "text": "Triggered by ${{ github.event_name }} for ${{ github.ref_type }} `${{ github.ref_name }}`" + } + ] + }, + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://github.githubassets.com/favicons/favicon.png", + "alt_text": "Github logo" + }, + { + "type": "mrkdwn", + "text": " Run " + } + ] + } + ] + } + integration-tests-promptnode: @@ -441,7 +980,56 @@ jobs: - uses: slackapi/slack-github-action@v1.23.0 if: failure() && github.ref == 'refs/heads/main' with: - payload-file-path: .github/config/failure-message-slack-payload.json + payload: | + { + "blocks": [ + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://avatars.githubusercontent.com/u/${{ github.actor_id }}?v=4", + "alt_text": "Actor" + }, + { + "type": "mrkdwn", + "text": "**" + } + ] + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Job ${{ github.job }} in workflow " + } + }, + { + "type": "context", + "elements": [ + { + "type": "mrkdwn", + "text": "Triggered by ${{ github.event_name }} for ${{ github.ref_type }} `${{ github.ref_name }}`" + } + ] + }, + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://github.githubassets.com/favicons/favicon.png", + "alt_text": "Github logo" + }, + { + "type": "mrkdwn", + "text": " Run " + } + ] + } + ] + } + integration-tests-agents: @@ -470,7 +1058,56 @@ jobs: - uses: slackapi/slack-github-action@v1.23.0 if: failure() && github.ref == 'refs/heads/main' with: - payload-file-path: .github/config/failure-message-slack-payload.json + payload: | + { + "blocks": [ + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://avatars.githubusercontent.com/u/${{ github.actor_id }}?v=4", + "alt_text": "Actor" + }, + { + "type": "mrkdwn", + "text": "**" + } + ] + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Job ${{ github.job }} in workflow " + } + }, + { + "type": "context", + "elements": [ + { + "type": "mrkdwn", + "text": "Triggered by ${{ github.event_name }} for ${{ github.ref_type }} `${{ github.ref_name }}`" + } + ] + }, + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://github.githubassets.com/favicons/favicon.png", + "alt_text": "Github logo" + }, + { + "type": "mrkdwn", + "text": " Run " + } + ] + } + ] + } + @@ -519,7 +1156,56 @@ jobs: - uses: slackapi/slack-github-action@v1.23.0 if: failure() && github.ref == 'refs/heads/main' with: - payload-file-path: .github/config/failure-message-slack-payload.json + payload: | + { + "blocks": [ + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://avatars.githubusercontent.com/u/${{ github.actor_id }}?v=4", + "alt_text": "Actor" + }, + { + "type": "mrkdwn", + "text": "**" + } + ] + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Job ${{ github.job }} in workflow " + } + }, + { + "type": "context", + "elements": [ + { + "type": "mrkdwn", + "text": "Triggered by ${{ github.event_name }} for ${{ github.ref_type }} `${{ github.ref_name }}`" + } + ] + }, + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://github.githubassets.com/favicons/favicon.png", + "alt_text": "Github logo" + }, + { + "type": "mrkdwn", + "text": " Run " + } + ] + } + ] + } + unit-tests-windows: needs: black @@ -558,7 +1244,56 @@ jobs: - uses: slackapi/slack-github-action@v1.23.0 if: failure() && github.ref == 'refs/heads/main' with: - payload-file-path: .github/config/failure-message-slack-payload.json + payload: | + { + "blocks": [ + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://avatars.githubusercontent.com/u/${{ github.actor_id }}?v=4", + "alt_text": "Actor" + }, + { + "type": "mrkdwn", + "text": "**" + } + ] + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Job ${{ github.job }} in workflow " + } + }, + { + "type": "context", + "elements": [ + { + "type": "mrkdwn", + "text": "Triggered by ${{ github.event_name }} for ${{ github.ref_type }} `${{ github.ref_name }}`" + } + ] + }, + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://github.githubassets.com/favicons/favicon.png", + "alt_text": "Github logo" + }, + { + "type": "mrkdwn", + "text": " Run " + } + ] + } + ] + } + integration-tests-linux: needs: @@ -649,7 +1384,56 @@ jobs: - uses: slackapi/slack-github-action@v1.23.0 if: failure() && github.ref == 'refs/heads/main' with: - payload-file-path: .github/config/failure-message-slack-payload.json + payload: | + { + "blocks": [ + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://avatars.githubusercontent.com/u/${{ github.actor_id }}?v=4", + "alt_text": "Actor" + }, + { + "type": "mrkdwn", + "text": "**" + } + ] + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Job ${{ github.job }} in workflow " + } + }, + { + "type": "context", + "elements": [ + { + "type": "mrkdwn", + "text": "Triggered by ${{ github.event_name }} for ${{ github.ref_type }} `${{ github.ref_name }}`" + } + ] + }, + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://github.githubassets.com/favicons/favicon.png", + "alt_text": "Github logo" + }, + { + "type": "mrkdwn", + "text": " Run " + } + ] + } + ] + } + integration-tests-windows: needs: @@ -702,7 +1486,56 @@ jobs: - uses: slackapi/slack-github-action@v1.23.0 if: failure() && github.ref == 'refs/heads/main' with: - payload-file-path: .github/config/failure-message-slack-payload.json + payload: | + { + "blocks": [ + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://avatars.githubusercontent.com/u/${{ github.actor_id }}?v=4", + "alt_text": "Actor" + }, + { + "type": "mrkdwn", + "text": "**" + } + ] + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Job ${{ github.job }} in workflow " + } + }, + { + "type": "context", + "elements": [ + { + "type": "mrkdwn", + "text": "Triggered by ${{ github.event_name }} for ${{ github.ref_type }} `${{ github.ref_name }}`" + } + ] + }, + { + "type": "context", + "elements": [ + { + "type": "image", + "image_url": "https://github.githubassets.com/favicons/favicon.png", + "alt_text": "Github logo" + }, + { + "type": "mrkdwn", + "text": " Run " + } + ] + } + ] + } + catch-all: name: Catch-all check