Skip to content

Commit

Permalink
Add a comment to the issue when CI fails
Browse files Browse the repository at this point in the history
  • Loading branch information
andybalaam committed Oct 23, 2024
1 parent 040fcdd commit 61223bd
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/latest-matrix-sdk-crypto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"}'

0 comments on commit 61223bd

Please sign in to comment.