Skip to content

Commit

Permalink
fix(ci): concurrency templating
Browse files Browse the repository at this point in the history
  • Loading branch information
CarpathianUA committed Oct 21, 2024
1 parent 3ff3e55 commit d30ef1c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build-and-deploy-to-cloudfront.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: Build and deploy to CloudFront

concurrency:
group: ${{ github.event.repository.name }}-${{ inputs.concurrency_name }}-${{ github.event.pull_request.number }}
group: ${{ inputs.concurrency_name }}
cancel-in-progress: true

on:
Expand Down Expand Up @@ -80,6 +80,10 @@ on:
type: boolean
default: false
required: false
concurrency_name:
type: string
default: ""
required: false

secrets:
sentry_auth_token:
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/build-and-deploy-to-s3-qa.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
name: Build and deploy to S3 QA

concurrency:
group: ${{ inputs.concurrency_name }}
cancel-in-progress: true

on:
workflow_call:
Expand Down Expand Up @@ -62,10 +65,11 @@ on:
type: boolean
default: false
required: false
concurrency_name:
type: string
default: ""
required: false

concurrency:
group: ${{ inputs.repo_name }}-build-n-deploy-s3-${{ inputs.pr_number }}
cancel-in-progress: true

jobs:
print-url:
Expand Down

0 comments on commit d30ef1c

Please sign in to comment.