From 91b544985127bcd93be74986eadbc82d27abab6a Mon Sep 17 00:00:00 2001 From: "Mallya, Ameya Keshava" Date: Mon, 31 Mar 2025 13:33:42 -0700 Subject: [PATCH] Adding !verify features [ROCm/rocprofiler-sdk commit: 8178bbc7824e3156857df3d4b5e09870c6661e6a] --- .../.github/workflows/rocm_ci_caller.yml | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/projects/rocprofiler-sdk/.github/workflows/rocm_ci_caller.yml b/projects/rocprofiler-sdk/.github/workflows/rocm_ci_caller.yml index 6cc2427190..0e3d93bd95 100644 --- a/projects/rocprofiler-sdk/.github/workflows/rocm_ci_caller.yml +++ b/projects/rocprofiler-sdk/.github/workflows/rocm_ci_caller.yml @@ -1,25 +1,25 @@ -name: ROCm CI Caller - +name: ROCm CI Caller on: pull_request: - branches: [amd-staging,release/rocm-rel-*] + branches: [amd-staging, release/rocm-rel-*] types: [opened, reopened, synchronize] push: branches: [amd-mainline] - workflow_dispatch: + workflow_dispatch: issue_comment: types: [created] jobs: - call-workflow: - if: ${{ github.event_name != 'issue_comment' || github.event.comment.body == '!verify' }} - uses: AMD-ROCm-Internal/rocm_ci_infra/.github/workflows/rocm_ci.yml@mainline + call-workflow: + 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@verifyfunc 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 || '' }} + 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 || (github.event_name == 'issue_comment' && github.event.issue.number) || 0}} + 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 || (github.event_name == 'issue_comment' && github.event.issue.pull_request.title) || ''}} 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 }} + comment_text: ${{ github.event_name == 'issue_comment' && github.event.comment.body || '' }}