Skip to content

Commit

Permalink
ci(cypress): create issue only on main branches
Browse files Browse the repository at this point in the history
  • Loading branch information
petermakowski committed Jan 25, 2024
1 parent e0283a8 commit 2bb0e7e
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(['main', '3.*', '*cypress*'], env.BRANCH_NAME)
uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 2bb0e7e

Please sign in to comment.