From f7e44b97428550dd16fc7fbe0d1e868d76d46e9e Mon Sep 17 00:00:00 2001 From: Alex Rudenko Date: Thu, 2 May 2024 14:16:15 +0200 Subject: [PATCH] ci: post a comment on canary failures (#12380) Co-authored-by: Nikolay Vitkov <34244704+Lightning00Blade@users.noreply.github.com> --- .github/workflows/canary.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/canary.yml b/.github/workflows/canary.yml index e651ef49ea0..c321d6f9fd7 100644 --- a/.github/workflows/canary.yml +++ b/.github/workflows/canary.yml @@ -72,3 +72,23 @@ jobs: with: name: test-results-${{ matrix.os }}-${{ matrix.suite }}-${{ matrix.shard }}-${{ matrix.configs }} path: /tmp/artifacts/*.json + + report-results: + name: 'Report results' + needs: [canary-chrome-tests] + runs-on: ubuntu-latest + permissions: + issues: write + if: ${{ always() }} + steps: + - name: Post comment + uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0 + if: ${{ needs.canary-chrome-tests.result != 'success'}} + with: + # https://github.com/puppeteer/puppeteer/issues/12379 + issue-number: 12379 + body: | + Tests with Chrome Canary failed + + --- + [Link](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})