Unverified Commit f50c3861 authored by Dillon Cullinan's avatar Dillon Cullinan Committed by GitHub
Browse files

ci: OPS-2024: Fix concurrency on main (#4258)


Signed-off-by: default avatarDillon Cullinan <dcullinan@nvidia.com>
parent bb7d203f
...@@ -11,7 +11,11 @@ on: ...@@ -11,7 +11,11 @@ on:
- release/*.*.* - release/*.*.*
concurrency: concurrency:
group: ${{ github.workflow }}-build-test-${{ github.ref_name || github.run_id }} # The group name is a ternary operation. If the ref_name is 'main',
# then the group name uses the run_id to ensure a unique group for
# 'main' pushes. Otherwise, the group name is the ref_name, so that
# workflows on the same PR/branch have the same group name for cancelling.
group: docker-build-test-${{ github.ref_name == 'main' && github.run_id || github.ref_name }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs: jobs:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment