Skip to content

Commit

Permalink
Prevent multiple PR workflows running at the same time (#5545)
Browse files Browse the repository at this point in the history
* Prevent multiple PR workflows running at the same time

* Distinguish between workflows
  • Loading branch information
andremion authored Jan 3, 2025
1 parent a40dc7c commit f91c328
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- main

concurrency:
group: ${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/check-entities.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Check DB Entities

on: [pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
check-db-entities:
name: Check DB Entities
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/sdk-size-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: SDK size checks
on:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
METRICS_PROJECT: "stream-chat-android-metrics"
MODULES: "stream-chat-android-client stream-chat-android-offline stream-chat-android-ui-components stream-chat-android-compose"
Expand Down

0 comments on commit f91c328

Please sign in to comment.