From 0e1cbe8ff77eeef20acf959771960ed301b3bc9e Mon Sep 17 00:00:00 2001 From: Andy Balaam Date: Tue, 22 Oct 2024 16:45:35 +0100 Subject: [PATCH] Attempt to create an issue on latest matrix-sdk build failure --- .../latest_matrix_sdk_failed_issue_template.md | 6 ++++++ .github/workflows/latest-matrix-sdk-crypto.yml | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 .github/latest_matrix_sdk_failed_issue_template.md diff --git a/.github/latest_matrix_sdk_failed_issue_template.md b/.github/latest_matrix_sdk_failed_issue_template.md new file mode 100644 index 000000000..b924d8f02 --- /dev/null +++ b/.github/latest_matrix_sdk_failed_issue_template.md @@ -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') }} diff --git a/.github/workflows/latest-matrix-sdk-crypto.yml b/.github/workflows/latest-matrix-sdk-crypto.yml index e70850268..a4596a648 100644 --- a/.github/workflows/latest-matrix-sdk-crypto.yml +++ b/.github/workflows/latest-matrix-sdk-crypto.yml @@ -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 @@ -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 }}'