Skip to content

Commit ffd53dc

Browse files
authored
Adding CI caller
1 parent a0a2dd7 commit ffd53dc

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/rocm-ci-caller.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: ROCm CI Caller
2+
on:
3+
pull_request:
4+
branches: [amd-staging, amd-npi, release/rocm-rel-*, amd-mainline]
5+
types: [opened, reopened, synchronize]
6+
push:
7+
branches: [amd-mainline]
8+
workflow_dispatch:
9+
issue_comment:
10+
types: [created]
11+
12+
jobs:
13+
call-workflow:
14+
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, '!linux-hip-psdb') || startsWith(github.event.comment.body, '!verify release') || startsWith(github.event.comment.body, '!verify retest')))
15+
uses: AMD-ROCm-Internal/rocm_ci_infra/.github/workflows/rocm_ci.yml@mainline
16+
secrets: inherit
17+
with:
18+
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}}
19+
input_pr_num: ${{github.event_name == 'pull_request' && github.event.pull_request.number || (github.event_name == 'issue_comment' && github.event.issue.number) || 0}}
20+
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) || ''}}
21+
input_pr_title: ${{github.event_name == 'pull_request' && github.event.pull_request.title || (github.event_name == 'issue_comment' && github.event.issue.pull_request.title) || ''}}
22+
repository_name: ${{ github.repository }}
23+
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}}
24+
trigger_event_type: ${{ github.event_name }}
25+
comment_text: ${{ github.event_name == 'issue_comment' && github.event.comment.body || '' }}

0 commit comments

Comments
 (0)