From bd8d71c420e3f1b0449ac0f2da8955e0f11fe57d Mon Sep 17 00:00:00 2001 From: Michael Kaye <1917473+michaelkaye@users.noreply.github.com> Date: Wed, 23 Feb 2022 10:20:57 +0000 Subject: [PATCH] Notify channel on sanity test result --- .github/workflows/sanity_test.yml | 14 ++++++++++++++ changelog.d/5314.misc | 1 + 2 files changed, 15 insertions(+) create mode 100644 changelog.d/5314.misc diff --git a/.github/workflows/sanity_test.yml b/.github/workflows/sanity_test.yml index 483926fa1f..b28bd20b24 100644 --- a/.github/workflows/sanity_test.yml +++ b/.github/workflows/sanity_test.yml @@ -78,3 +78,17 @@ jobs: path: | emulator.log failure_screenshots/ + + + notify: + runs-on: ubuntu-latest + needs: integration-tests + if: always() + steps: + - uses: michaelkaye/matrix-hookshot-action@v0.2.0 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + matrix_access_token: ${{ secrets.ELEMENT_ANDROID_NOTIFICATION_ACCESS_TOKEN }} + matrix_room_id: ${{ secrets.ELEMENT_ANDROID_INTERNAL_ROOM_ID }} + text_template: "Sanity test run: {{#each job_statuses }}{{#with this }}{{#if completed }} {{name}} {{conclusion}} at {{completed_at}} {{html_url}}{{/if}}{{/with}}{{/each}}" + html_template: "CI Sanity test run results: {{#each job_statuses }}{{#with this }}{{#if completed }} {{name}} {{conclusion}} at {{completed_at}} [details]{{/if}}{{/with}}{{/each}}" diff --git a/changelog.d/5314.misc b/changelog.d/5314.misc new file mode 100644 index 0000000000..35fed08a61 --- /dev/null +++ b/changelog.d/5314.misc @@ -0,0 +1 @@ +Notify element-android channel each time a nightly build completes.