diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index d1df680d88..384ca84c4b 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -60,7 +60,8 @@ jobs: name: cypress-screenshots path: cypress/screenshots - name: Create issue on failure - if: failure() + # Create an issue if the job fails on push to main or 3.* branches + if: failure() && github.event_name == 'push' && contains(fromJson('["main", "3.*"]'), env.BRANCH_NAME) uses: JasonEtco/create-an-issue@v2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}