Skip to content

Commit

Permalink
ci(cypress): create issue only on main branches (#5306)
Browse files Browse the repository at this point in the history
  • Loading branch information
petermakowski authored Jan 26, 2024
1 parent e0283a8 commit 752d118
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 752d118

Please sign in to comment.