From a07f9a723f2af86fa9478a478c2755c81891db04 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 1 Feb 2023 15:52:34 +0000 Subject: [PATCH] Include percy in branch protection conditionally (#9894) --- .github/workflows/cypress.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/cypress.yaml b/.github/workflows/cypress.yaml index d114217f5c..0a451b55a8 100644 --- a/.github/workflows/cypress.yaml +++ b/.github/workflows/cypress.yaml @@ -181,6 +181,15 @@ jobs: with: name: cypress-junit path: cypress/results + + - name: Check Percy passed + if: needs.prepare.outputs.percy_enable + uses: lewagon/wait-on-check-action@v1.2.0 + with: + ref: ${{ github.event.workflow_run.head_sha }} + repo-token: ${{ secrets.GITHUB_TOKEN }} + wait-interval: 10 + check-name: percy/matrix-react-sdk report: name: Report results needs: tests