Skip to content

Commit 98610ba

Browse files
authored
Adding !verify functionality
1 parent d318bcc commit 98610ba

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed
Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
1-
name: ROCm CI Caller
2-
1+
name: ROCm CI Caller
32
on:
43
pull_request:
5-
branches: [release/rocm-rel-6.4]
6-
types: [opened, reopened, synchronize, ready_for_review]
7-
8-
workflow_dispatch:
4+
branches: [release/rocm-rel-*]
5+
types: [opened, reopened, synchronize]
6+
workflow_dispatch:
97
issue_comment:
108
types: [created]
119

1210
jobs:
13-
call-workflow:
14-
if: ${{ github.event_name != 'issue_comment' || github.event.comment.body == '!verify' }}
15-
uses: AMD-ROCm-Internal/rocm_ci_infra/.github/workflows/rocm_ci.yml@mainline
11+
call-workflow:
12+
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')))
13+
uses: AMD-ROCm-Internal/rocm_ci_infra/.github/workflows/rocm_ci.yml@mainline
1614
secrets: inherit
1715
with:
18-
input_sha: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
19-
input_pr_num: ${{ github.event_name == 'pull_request' && github.event.pull_request.number || 0 }}
20-
input_pr_url: ${{ github.event_name == 'pull_request' && github.event.pull_request.html_url || '' }}
21-
input_pr_title: ${{ github.event_name == 'pull_request' && github.event.pull_request.title || '' }}
16+
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}}
17+
input_pr_num: ${{github.event_name == 'pull_request' && github.event.pull_request.number || (github.event_name == 'issue_comment' && github.event.issue.number) || 0}}
18+
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) || ''}}
19+
input_pr_title: ${{github.event_name == 'pull_request' && github.event.pull_request.title || (github.event_name == 'issue_comment' && github.event.issue.pull_request.title) || ''}}
2220
repository_name: ${{ github.repository }}
23-
base_ref: ${{ github.event_name == 'pull_request' && github.base_ref || github.ref }}
21+
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}}
2422
trigger_event_type: ${{ github.event_name }}
23+
comment_text: ${{ github.event_name == 'issue_comment' && github.event.comment.body || '' }}

0 commit comments

Comments
 (0)