From 752d118b73e1e71fd9a9a1bfa7452cf5003a2847 Mon Sep 17 00:00:00 2001 From: Peter Makowski Date: Fri, 26 Jan 2024 10:03:41 +0100 Subject: [PATCH] ci(cypress): create issue only on main branches (#5306) --- .github/workflows/cypress.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }}