Adding !verify features

Signed-off-by: Mallya, Ameya Keshava <AmeyaKeshava.Mallya@amd.com>

[ROCm/ROCR-Runtime commit: 39e8911fbc]
This commit is contained in:
Mallya, Ameya Keshava
2025-03-31 13:05:20 -07:00
والد fff4455589
کامیت 7adfc15d58
+9 -10
مشاهده پرونده
@@ -1,9 +1,7 @@
name: ROCm CI Caller name: ROCm CI Caller
on: on:
# Commenting below to avoid re-runs of amd smi for trivial rebases
# Once Rocr team aligns update amd-master to amd-mainline
pull_request: pull_request:
branches: [amd-staging, amd-master, amd-npi, release/rocm-rel-*] branches: [amd-staging, amd-npi, release/rocm-rel-*, amd-master]
types: [opened, reopened, synchronize] types: [opened, reopened, synchronize]
push: push:
branches: [amd-master] branches: [amd-master]
@@ -13,14 +11,15 @@ on:
jobs: jobs:
call-workflow: call-workflow:
if: ${{ github.event_name != 'issue_comment' || github.event.comment.body == '!verify' }} if: github.event_name != 'issue_comment' ||(github.event_name == 'issue_comment' && github.event.issue.pull_request && (startsWith(github.event.comment.body, '!verify') || startsWith(github.event.comment.body, '!verify release') || startsWith(github.event.comment.body, '!verify retest')))
uses: AMD-ROCm-Internal/rocm_ci_infra/.github/workflows/rocm_ci.yml@mainline uses: AMD-ROCm-Internal/rocm_ci_infra/.github/workflows/rocm_ci.yml@verifyfunc
secrets: inherit secrets: inherit
with: with:
input_sha: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} input_sha: ${{github.event_name == 'pull_request' && github.event.pull_request.head.sha || (github.event_name == 'push' && github.sha) || (github.event_name == 'issue_comment' && github.event.issue.pull_request.head.sha) || github.sha}}
input_pr_num: ${{ github.event_name == 'pull_request' && github.event.pull_request.number || 0 }} input_pr_num: ${{github.event_name == 'pull_request' && github.event.pull_request.number || (github.event_name == 'issue_comment' && github.event.issue.number) || 0}}
input_pr_url: ${{ github.event_name == 'pull_request' && github.event.pull_request.html_url || '' }} input_pr_url: ${{github.event_name == 'pull_request' && github.event.pull_request.html_url || (github.event_name == 'issue_comment' && github.event.issue.pull_request.html_url) || ''}}
input_pr_title: ${{ github.event_name == 'pull_request' && github.event.pull_request.title || '' }} input_pr_title: ${{github.event_name == 'pull_request' && github.event.pull_request.title || (github.event_name == 'issue_comment' && github.event.issue.pull_request.title) || ''}}
repository_name: ${{ github.repository }} repository_name: ${{ github.repository }}
base_ref: ${{ github.event_name == 'pull_request' && github.base_ref || github.ref }} base_ref: ${{github.event_name == 'pull_request' && github.event.pull_request.base.ref || (github.event_name == 'issue_comment' && github.event.issue.pull_request.base.ref) || github.ref}}
trigger_event_type: ${{ github.event_name }} trigger_event_type: ${{ github.event_name }}
comment_text: ${{ github.event_name == 'issue_comment' && github.event.comment.body || '' }}