Skip to content

Commit 86de68c

Browse files
committed
[PRMP-474] Workflow concurrency to prevent overlapping workspace executions
1 parent 50750c1 commit 86de68c

File tree

9 files changed

+27
-0
lines changed

9 files changed

+27
-0
lines changed

.github/workflows/automated-deploy-dev.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ permissions:
1414
id-token: write # This is required for requesting the JWT
1515
contents: write # This is required for SBOM action
1616

17+
concurrency:
18+
group: ndr-dev
19+
1720
jobs:
1821
terraform_plan_apply:
1922
name: Terraform Plan/Apply (ndr-dev)

.github/workflows/cron-daily-health-check.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ permissions:
1010
pull-requests: write
1111
id-token: write
1212

13+
concurrency:
14+
group: ndrd
15+
1316
jobs:
1417
set_workspace:
1518
name: Set Workspace (ndrd)

.github/workflows/cron-tear-down-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ permissions:
99
id-token: write # This is required for requesting the JWT
1010
contents: read # This is required for actions/checkout
1111

12+
concurrency:
13+
group: ndr-test
14+
1215
jobs:
1316
remove_edge_associations:
1417
name: Remove Lambda@Edge Associations

.github/workflows/deploy-pre-prod.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ permissions:
1616
id-token: write # This is required for requesting the JWT
1717
contents: read # This is required for actions/checkout
1818

19+
concurrency:
20+
group: pre-prod
21+
1922
jobs:
2023
tag_main:
2124
name: Tag main

.github/workflows/deploy-prod.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ permissions:
1515
id-token: write # This is required for requesting the JWT
1616
contents: read # This is required for actions/checkout
1717

18+
concurrency:
19+
group: prod
20+
1821
jobs:
1922
terraform_plan_apply:
2023
name: Terraform Plan/Apply (prod)

.github/workflows/deploy-sandbox.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ permissions:
1919
id-token: write # This is required for requesting the JWT
2020
contents: read # This is required for actions/checkout
2121

22+
concurrency:
23+
group: ${{ inputs.sandbox_name }}
24+
2225
jobs:
2326
validate_inputs:
2427
name: Validate Inputs

.github/workflows/deploy-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ permissions:
1515
id-token: write # This is required for requesting the JWT
1616
contents: read # This is required for actions/checkout
1717

18+
concurrency:
19+
group: ndr-test
20+
1821
jobs:
1922
terraform_plan_apply:
2023
name: Terraform Plan/Apply (ndr-test)

.github/workflows/tear-down-sandbox.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ permissions:
4545
id-token: write
4646
contents: read
4747

48+
concurrency:
49+
group: ${{ inputs.sandbox_name }}
50+
4851
jobs:
4952
remove_edge_associations:
5053
name: Remove Lambda@Edge Associations

.github/workflows/tool-rename-git-tag.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ permissions:
2121
id-token: write # This is required for requesting the JWT
2222
contents: write # This is required for actions/checkout
2323

24+
concurrency:
25+
group: ${{ inputs.old_tag }}
26+
2427
jobs:
2528
tag_renaming_process:
2629
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)