Skip to content

Commit e29fcee

Browse files
committed
Add concurrency control to GitHub Actions workflows
Added concurrency groups to "bump-version-preview" and "publish-docs" workflows to prevent overlapping runs. This ensures cleaner and more reliable workflow executions by canceling redundant jobs.
1 parent a823f51 commit e29fcee

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/bump-version-preview.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
name: Display version hint
2+
23
on:
34
pull_request:
45
types: [synchronize, opened, reopened, ready_for_review]
56
branches: [master]
67

8+
concurrency: version-preview-${{ github.ref }}
9+
710
jobs:
811
preview-version:
912
runs-on: ubuntu-latest

.github/workflows/publish-docs.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Publish Final Documentation
22

3+
concurrency: docs
4+
35
on:
46
push:
57
branches: [$default-branch]

0 commit comments

Comments
 (0)