From 61223bdcb3c3e6313568b0913c21f8ed16935003 Mon Sep 17 00:00:00 2001 From: Andy Balaam Date: Wed, 23 Oct 2024 10:44:20 +0100 Subject: [PATCH] Add a comment to the issue when CI fails --- .../workflows/latest-matrix-sdk-crypto.yml | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/latest-matrix-sdk-crypto.yml b/.github/workflows/latest-matrix-sdk-crypto.yml index 07e4f782f..c0df93c9f 100644 --- a/.github/workflows/latest-matrix-sdk-crypto.yml +++ b/.github/workflows/latest-matrix-sdk-crypto.yml @@ -65,14 +65,22 @@ jobs: filename: .github/latest_matrix_sdk_failed_issue_template.md id: create-issue - - run: 'echo Created/updated ${{ steps.create-issue.outputs.url }}' + - name: Comment on the issue if: failure() + uses: thollander/actions-comment-pull-request@v3 + with: + message: | + Building matrix-rust-sdk-crypto-wasm against the latest matrix-sdk Rust is failing + pr_number: steps.create-issue.outputs.number - - name: Ping matrix room on failure + - run: 'echo Created/updated ${{ steps.create-issue.outputs.url }}' if: failure() - uses: fjogeleit/http-request-action@v1 - with: - url: 'https://element.ems.host/hookshot/webhook/266e410d-0cb4-4f59-8f56-b063665d3ea0' - method: 'POST' - customHeaders: '{"Content-Type": "application/json"}' - data: '{"text": "matrix-rust-sdk-crypto-wasm is failing to build against the latest matrix-sdk Rust code. See ${{ steps.create-issue.outputs.url }}"}' + + # - name: Ping matrix room on failure + # if: failure() + # uses: fjogeleit/http-request-action@v1 + # with: + # url: 'https://element.ems.host/hookshot/webhook/266e410d-0cb4-4f59-8f56-b063665d3ea0' + # method: 'POST' + # customHeaders: '{"Content-Type": "application/json"}' + # data: '{"text": "matrix-rust-sdk-crypto-wasm is failing to build against the latest matrix-sdk Rust code. See ${{ steps.create-issue.outputs.url }}"}'