Skip to content

Commit 2dd1e85

Browse files
Update github workflows: add better concurrency and remove push trigger (#1003)
* remove push trigger * add logic to concurrency group * fix concurrency logic
1 parent 006a5ab commit 2dd1e85

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.github/workflows/outside_contributor_dbt_v1.8.6.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ on:
88
required: true
99

1010
concurrency:
11+
# Ensure only one instance of this workflow runs across all PRs to prevent database conflicts
1112
group: ci-testing
13+
# Don't cancel in-progress runs automatically
1214
cancel-in-progress: false
1315

1416
env:

.github/workflows/tuva_internal_dbt_v1.8.6.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,13 @@ on:
55
- main
66
- 'minor-release*'
77
- 'release*'
8-
push: # run when code is pushed to a release branch
9-
branches:
10-
- main
11-
- 'minor-release*'
12-
- 'release*'
138
workflow_dispatch: # for manual triggering
149

1510
concurrency:
16-
# Group by workflow and ref, cancel ongoing runs for the same PR/branch
17-
group: ${{ github.workflow }}-${{ github.ref }}
18-
cancel-in-progress: true
11+
# Ensure only one instance of this workflow runs across all PRs to prevent database conflicts
12+
group: ci-testing
13+
# Don't cancel in-progress runs automatically
14+
cancel-in-progress: false
1915

2016
env:
2117
PYTHON_VERSION: '3.9'

0 commit comments

Comments
 (0)