Commit d65480d
fix: Prevent concurrent deployments by excluding main branch from check workflow
Root cause: Both auto-update and check workflows were triggered simultaneously
on push to main branch, causing a race condition when deploying to the same
CloudFormation stack. This resulted in deployment failures with ECR permission
errors.
The error occurred because:
1. PR merge triggered both workflows at 2025-11-13T01:24:08Z
2. Both tried to deploy to docker-selenium-lambda-prod stack concurrently
3. CloudFormation CREATE_FAILED on DemoLambdaFunction due to conflict
4. Stack rolled back to UPDATE_ROLLBACK_COMPLETE state
Solution: Exclude main branch from check workflow since auto-update already
handles main branch deployments. Added workflow_dispatch for manual testing.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent c970eef commit d65480d
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
5 | 8 | | |
6 | 9 | | |
7 | 10 | | |
| |||
0 commit comments