diff --git a/.gitea/workflows/ui-test.yaml b/.gitea/workflows/ui-test.yaml index cb7812d..fe40048 100644 --- a/.gitea/workflows/ui-test.yaml +++ b/.gitea/workflows/ui-test.yaml @@ -19,10 +19,10 @@ on: # Playwright launches its own `pnpm dev` on :5173. In host-mode the # runner shares the host's port namespace, so two parallel ui-test # jobs (e.g. a push event racing with a pull_request event for the -# same commit) collide on EADDRINUSE. Group by branch/ref and cancel -# the in-progress run so only one ui-test is alive at a time per ref. +# same commit) collide on EADDRINUSE. Group by the head commit so +# push and pull_request events for the same sha share one bucket. concurrency: - group: ui-test-${{ gitea.ref }} + group: ui-test-${{ gitea.event.pull_request.head.sha || gitea.sha }} cancel-in-progress: true jobs: