[AMD] Update AMD CI workflow concurrency group (#24065)
Co-authored-by: bingxche <bingxche@amd.com>
This commit is contained in:
co-authored by
bingxche
parent
e5c2a9b6cf
commit
155e333039
@@ -99,8 +99,9 @@ concurrency:
|
||||
# When called via workflow_call with ref set, use a unique group per caller run to avoid
|
||||
# collisions with direct schedule/push triggers. We use inputs.ref (not github.event_name)
|
||||
# to detect this, because github.event_name inherits from the caller in workflow_call.
|
||||
group: nightly-test-amd-${{ inputs.ref && format('caller-{0}', github.run_id) || github.ref }}
|
||||
cancel-in-progress: ${{ !inputs.ref && github.event_name != 'workflow_call' }}
|
||||
# Manual dispatch runs also get unique groups so they never cancel each other.
|
||||
group: nightly-test-amd-${{ github.event_name == 'workflow_dispatch' && format('manual-{0}', github.run_id) || inputs.ref && format('caller-{0}', github.run_id) || github.ref }}
|
||||
cancel-in-progress: ${{ !inputs.ref && github.event_name != 'workflow_call' && github.event_name != 'workflow_dispatch' }}
|
||||
|
||||
jobs:
|
||||
# ============================================== MI30x Unit Tests ==============================================
|
||||
|
||||
Reference in New Issue
Block a user