Create rocm_ci_caller.yml init file to call shared workflow

This commit is contained in:
Choudhary, Rahul authored and Charis Poag committed 2025-03-09 14:23:21 -05:00
1 orang tua 76ac0808fe
melakukan 78f66f81de
1 file changed
+22
+22
Melihat File
@@ -0,0 +1,22 @@
name: ROCm CI Caller
on:
# Commenting below to avoid re-runs of amd smi for trivial rebases
pull_request:
branches: [amd-staging, amd-mainline]
types: [opened, reopened, synchronize]
push:
branches: [amd-mainline]
workflow_dispatch:
jobs:
call-workflow:
uses: AMD-ROCm-Internal/rocm_ci_infra/.github/workflows/rocm_ci.yml@mainline
secrets: inherit
with:
input_sha: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
input_pr_num: ${{ github.event_name == 'pull_request' && github.event.pull_request.number || 0 }}
input_pr_url: ${{ github.event_name == 'pull_request' && github.event.pull_request.html_url || '' }}
input_pr_title: ${{ github.event_name == 'pull_request' && github.event.pull_request.title || '' }}
repository_name: ${{ github.repository }}
base_ref: ${{ github.event_name == 'pull_request' && github.base_ref || github.ref }}
trigger_event_type: ${{ github.event_name }}