Skip to content

Commit ad6f436

Browse files
committed
ci: dedupe concurrent push/PR runs to stop Harbor push race
The push and pull_request triggers spawned two concurrent runs for the same commit, racing on the Harbor image push (build-docker failing with 'blob upload invalid'). Add a concurrency group keyed on the head commit SHA (shared by both events) with cancel-in-progress, so only one run per commit executes. https://claude.ai/code/session_01S76fk9ma5Szkf9r1W44RVP
1 parent e2f128d commit ad6f436

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ env:
1515
REGISTRY: ghcr.io
1616
IMAGE_NAME: ${{ github.repository }}
1717

18+
concurrency:
19+
group: ci-${{ github.event.pull_request.head.sha || github.sha }}
20+
cancel-in-progress: true
21+
1822
jobs:
1923
build-gradle:
2024
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)