# CI Workflow Duplicate Trigger Fix Summary

## Problem
The GitHub Actions workflow was triggering duplicate runs because it included the `add-e2e-tests` branch in both `pull_request` and `push` triggers. When pushing to a PR branch, this caused the workflow to run twice.

## Workflow Files Modified

### 1. `.github/workflows/e2e-tests.yml`

**Changes made:**

1. **Removed `add-e2e-tests` from pull_request branches:**
   - Before: `branches: [main, develop, add-e2e-tests]`
   - After: `branches: [main, develop]`

2. **Removed `add-e2e-tests` from push branches:**
   - Before: `branches: [main, develop, add-e2e-tests]`
   - After: `branches: [main, develop]`

3. **Updated concurrency control to use PR number grouping:**
   - Before: `group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}`
   - After: `group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}`

## Commit Details

- **Commit SHA:** `dfcc660`
- **Commit message:**
  ```
  ci: prevent duplicate workflow runs

  - Remove PR branch from workflow triggers
  - Add concurrency control to cancel redundant runs
  - Workflows now trigger on PR events or pushes to main/develop only
  ```

## Push Confirmation

Successfully pushed to `origin/add-e2e-tests`
- Previous commit: `2dde534`
- New commit: `dfcc660`

## Result

The E2E tests workflow will now:
- Only trigger on PRs targeting `main` or `develop` branches
- Only trigger on pushes to `main` or `develop` branches
- Use PR number-based concurrency grouping to cancel redundant runs when new commits are pushed to the same PR
