diff --git a/.github/workflows/release-test.yml b/.github/workflows/release-test.yml
index 17a6d16cbcea8..4367a5ac2e236 100644
--- a/.github/workflows/release-test.yml
+++ b/.github/workflows/release-test.yml
@@ -181,6 +181,25 @@ jobs:
mkdir test-reports/
junit2html ${REPORT_XML} ${REPORT_NAME}.html
cp ${REPORT_XML} ${REPORT_NAME}.xml
+ - name: Generate result message
+ if: always()
+ id: generate_results
+ run: |
+ if [ "${{ steps.tests.conclusion }}" == "success" ]; then
+ nice_str="✅ PASSED"
+ elif [ "${{ steps.tests.conclusion }}" == "failure" ]; then
+ nice_str="❌ FAILED"
+ fi
+ echo "nice_str=${nice_str}" >> ${GITHUB_OUTPUT}
+ - name: Report to Matrix channel
+ if: ${{ always() && steps.generate_results.outputs.nice_str != '' }}
+ run: |
+ MESSAGE="${{ steps.generate_results.outputs.nice_str}}: Release tests" \
+ "[${{ matrix.pytest_mark }}, ${{ matrix.sudo }}] on '${{ github.event_name }}':" \
+ "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"; \
+ curl -H "Content-Type: application/json" -X POST \
+ --data '{"msgtype":"m.text","format":"org.matrix.custom.html","body":"${MESSAGE}","formatted_body":"${MESSAGE}"}' \
+ "https://matrix.org/_matrix/client/v3/rooms/${{env.RIOT_CI_RELEASE_REPORT_CHANNEL}}/send/m.room.message?access_token=${{secrets.MATRIX_RIOT_CI_ACCESS_TOKEN}}"
- uses: actions/upload-artifact@v2
if: always()
with: