[testing workflows] Update concurrency group for CI workflow (#50407)

This commit is contained in:
Adrian Moldovan 2024-08-06 14:18:56 +01:00 committed by GitHub
parent 91a1b92e9a
commit e9146f5ba4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -16,8 +16,9 @@ on:
type: string
concurrency:
group: '${{ github.workflow }}-${{ github.ref }}-${{ inputs.trigger }}'
cancel-in-progress: ${{ github.ref != 'trunk' }}
# Cancel concurrent jobs but not for push event. For push use the run_id to have a unique group.
group: ci-${{ github.event_name == 'push' && github.run_id || github.event_name }}-${{ github.ref }}-${{ inputs.trigger }}
cancel-in-progress: true
env:
FORCE_COLOR: 1