From d65480d5fcb13c0508004f792d644ea98f80727c Mon Sep 17 00:00:00 2001 From: umihico Date: Thu, 13 Nov 2025 11:10:37 +0900 Subject: [PATCH] fix: Prevent concurrent deployments by excluding main branch from check workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .github/workflows/check.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index e459524..18efa02 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -1,7 +1,10 @@ name: check on: - - push + push: + branches-ignore: + - main + workflow_dispatch: permissions: id-token: write