[AMD] Fix AMD extra scheduled runs cancelling each other (#28989)

Co-authored-by: bingxche <bingxche@amd.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
YC Yen-Ching Tseng
2026-06-23 11:48:32 +08:00
committed by GitHub
co-authored by bingxche Claude Opus 4.8
parent 4740f23e1f
commit b42c79c4eb
+6 -2
View File
@@ -83,8 +83,12 @@ env:
DOCKERHUB_AMD_TOKEN: ${{ secrets.DOCKERHUB_AMD_TOKEN }}
concurrency:
group: pr-test-amd-extra-${{ github.event_name }}-${{ github.head_ref || github.ref_name || 'default' }}-${{ inputs.ref || 'all' }}
cancel-in-progress: ${{ github.event_name != 'workflow_call' }}
# Mirror pr-test-amd.yml: schedule/dispatch runs key on run_id (unique group,
# never cancel each other); PR runs share a per-branch group so pushes cancel
# stale runs. (In a reusable workflow github.event_name is the originating
# event, never workflow_call, so the guard keys off the real events.)
group: pr-test-amd-extra-${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && format('full-{0}', github.run_id) || github.head_ref || github.ref_name || inputs.ref || 'default' }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions:
actions: write