Skip to content

Commit

Permalink
Merge pull request #151 from matrix-org/andybalaam/create-issue-on-sd…
Browse files Browse the repository at this point in the history
…k-build-failure

Attempt to create an issue on latest matrix-sdk build failure
  • Loading branch information
andybalaam authored Oct 22, 2024
2 parents 0989aad + 0e1cbe8 commit 0520f0d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/latest_matrix_sdk_failed_issue_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Building matrix-rust-sdk-crypto-wasm against the latest matrix-sdk Rust is failing
---
See https://github.com/{{env.GITHUB_REPOSITORY}}/actions/runs/{{env.GITHUB_RUN_ID}}

Initial failure: {{ date | date('dddd, YYYY-MM-DD HH:mm') }}
18 changes: 18 additions & 0 deletions .github/workflows/latest-matrix-sdk-crypto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ concurrency:
env:
CARGO_TERM_COLOR: always

permissions:
contents: read
issues: write

jobs:
test-against-latest-matrix-sdk-crypto:
name: test-against-latest-matrix-sdk-crypto
Expand Down Expand Up @@ -50,3 +54,17 @@ jobs:

- name: Test the JavaScript binding
run: yarn test

open-issue-on-failure:
if: failure()
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: JasonEtco/create-an-issue@1b14a70e4d8dc185e5cc76d3bec9eab20257b2c5 # v2.9.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
update_existing: true
filename: .github/latest_matrix_sdk_failed_issue_template.md
id: create-issue
- run: 'echo Created/updated ${{ steps.create-issue.outputs.url }}'

0 comments on commit 0520f0d

Please sign in to comment.