Skip to content

Commit

Permalink
Fix concurrency for test-actions.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
baksetercx committed Jan 8, 2025
1 parent 530217d commit 3d36170
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/test-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ jobs:
strategy:
matrix: ${{ fromJson(needs.prepare-jobs.outputs.matrix-analyze) }}
concurrency:
group: '${{ github.workflow }}-${{ github.event_name }}-${{ matrix.runner }}-${{ matrix.language }}-analyze'
group: '${{ github.workflow_ref }}-${{ matrix.runner }}-${{ matrix.language }}-analyze'
cancel-in-progress: true
runs-on: ${{ matrix.runner }}
permissions:
Expand Down Expand Up @@ -179,7 +179,7 @@ jobs:
strategy:
matrix: ${{ fromJson(needs.prepare-jobs.outputs.matrix) }}
concurrency:
group: '${{ github.workflow }}-${{ github.event_name }}-${{ matrix.runner }}-unit-tests'
group: '${{ github.workflow_ref }}-${{ matrix.runner }}-unit-tests'
cancel-in-progress: true
runs-on: ${{ matrix.runner }}
permissions:
Expand Down Expand Up @@ -220,7 +220,7 @@ jobs:
matrix: ${{ fromJson(needs.prepare-jobs.outputs.matrix-build) }}
concurrency:
group: |
${{ github.workflow }}-${{ github.event_name }}-${{ matrix.runner }}-${{ matrix.application-name }}-${{ matrix.project-file }}-${{ matrix.registry }}
${{ github.workflow_ref }}-${{ matrix.runner }}-${{ matrix.application-name }}-${{ matrix.project-file }}-${{ matrix.registry }}
cancel-in-progress: true
runs-on: ${{ matrix.runner }}
permissions:
Expand Down Expand Up @@ -268,7 +268,7 @@ jobs:
name: Build Vulnerable Service
needs: [prepare-jobs]
concurrency:
group: '${{ github.workflow }}-${{ github.event_name }}-build-vulnerable-service'
group: '${{ github.workflow_ref }}-build-vulnerable-service'
cancel-in-progress: true
runs-on: elvia-runner
permissions:
Expand Down Expand Up @@ -327,7 +327,7 @@ jobs:
fail-fast: false
matrix: ${{ fromJson(needs.prepare-jobs.outputs.matrix-deploy) }}
concurrency:
group: '${{ github.workflow }}-${{ github.event_name }}-${{ matrix.application-name }}-${{ matrix.runtime-cloud-provider }}-deploy-dev'
group: '${{ github.workflow_ref }}-${{ matrix.application-name }}-${{ matrix.runtime-cloud-provider }}-deploy-dev'
cancel-in-progress: false
runs-on: ${{ matrix.runner }}
permissions:
Expand Down Expand Up @@ -375,7 +375,7 @@ jobs:
strategy:
matrix: ${{ fromJson(needs.prepare-jobs.outputs.matrix) }}
concurrency:
group: '${{ github.workflow }}-${{ github.event_name }}-${{ matrix.runner }}-integration-tests'
group: '${{ github.workflow_ref }}-${{ matrix.runner }}-integration-tests'
cancel-in-progress: true
runs-on: ${{ matrix.runner }}
permissions:
Expand Down Expand Up @@ -419,7 +419,7 @@ jobs:
fail-fast: false
matrix: ${{ fromJson(needs.prepare-jobs.outputs.matrix-trivy) }}
concurrency:
group: '${{ github.workflow }}-${{ github.event_name }}-${{ matrix.runner }}-trivy-iac-scan'
group: '${{ github.workflow_ref }}-${{ matrix.runner }}-trivy-iac-scan'
cancel-in-progress: true
runs-on: ${{ matrix.runner }}
permissions:
Expand All @@ -441,7 +441,7 @@ jobs:
strategy:
matrix: ${{ fromJson(needs.prepare-jobs.outputs.matrix) }}
concurrency:
group: '${{ github.workflow }}-${{ github.event_name }}-${{ matrix.runner }}-terraform-format'
group: '${{ github.workflow_ref }}-${{ matrix.runner }}-terraform-format'
cancel-in-progress: true
runs-on: ${{ matrix.runner }}
if: ${{ github.event_name != 'pull_request' || contains(needs.prepare-jobs.outputs.all-changed-files, 'terraform-format/action.yml') }}
Expand Down

0 comments on commit 3d36170

Please sign in to comment.