From f65e8d088e7b847efc98f5ec5d93fb8f8863decf Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 7 Jun 2022 10:56:39 +0100 Subject: [PATCH] Update matrix-org/github-action-benchmark (#8774) * Update cypress.yaml * Update cypress.yaml * Update cypress.yaml --- .github/workflows/cypress.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cypress.yaml b/.github/workflows/cypress.yaml index 7ccc0b7996..9c1ac191a7 100644 --- a/.github/workflows/cypress.yaml +++ b/.github/workflows/cypress.yaml @@ -40,7 +40,7 @@ jobs: echo "COMMIT_INFO_AUTHOR=$(git log --format='%an' -n 1 ${{ github.event.workflow_run.head_sha }})" >> $GITHUB_ENV echo "COMMIT_INFO_EMAIL=$(git log --format='%ae' -n 1 ${{ github.event.workflow_run.head_sha }})" >> $GITHUB_ENV # Only run Percy when it is demanded or on develop - if [[ "${{ (contains(fromJSON(steps.prdetails.outputs.data).labels.*.name, 'X-Needs-Percy') || github.ref == 'refs/heads/develop') }}" == "false" ]]; then + if [[ "${{ (contains(fromJSON(steps.prdetails.outputs.data).labels.*.name, 'X-Needs-Percy') || github.event.workflow_run.event != 'pull_request') }}" == "false" ]]; then echo "PERCY_ENABLE=0" >> $GITHUB_ENV fi @@ -87,8 +87,8 @@ jobs: cypress/synapselogs - name: Store benchmark result - if: github.ref == 'refs/heads/develop' - uses: matrix-org/github-action-benchmark@jsperfentry-1 + if: github.event.workflow_run.event != 'pull_request' + uses: matrix-org/github-action-benchmark@jsperfentry-5 with: name: Cypress measurements tool: 'jsperformanceentry' @@ -98,4 +98,4 @@ jobs: fail-on-alert: false comment-on-alert: false github-token: ${{ secrets.DEPLOY_GH_PAGES }} - auto-push: ${{ github.ref == 'refs/heads/develop' }} + auto-push: ${{ github.event.workflow_run.event != 'pull_request' }}