From 73de53468a40a2bf7e66a4572e1bcdbc43068c01 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 23 Feb 2023 15:57:29 +0000 Subject: [PATCH] Allow percy branch protection when X-Needs-Percy is passed (#10230) --- .github/workflows/cypress.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/cypress.yaml b/.github/workflows/cypress.yaml index 324b66b3530..ea2c1947d2e 100644 --- a/.github/workflows/cypress.yaml +++ b/.github/workflows/cypress.yaml @@ -203,6 +203,17 @@ jobs: PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }} PERCY_PARALLEL_NONCE: ${{ needs.prepare.outputs.uuid }} + - name: Skip Percy required check + if: needs.prepare.outputs.percy_enable != '1' + uses: Sibz/github-status-action@v1 + with: + authToken: ${{ secrets.GITHUB_TOKEN }} + state: success + description: Percy skipped + context: percy/matrix-react-sdk + sha: ${{ github.event.workflow_run.head_sha }} + target_url: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} + - uses: Sibz/github-status-action@v1 with: authToken: ${{ secrets.GITHUB_TOKEN }}