|
1 | | -name: ROCm CI Caller |
2 | | - |
| 1 | +name: ROCm CI Caller |
3 | 2 | on: |
4 | 3 | 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: |
9 | 7 | issue_comment: |
10 | 8 | types: [created] |
11 | 9 |
|
12 | 10 | 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 |
16 | 14 | secrets: inherit |
17 | 15 | 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) || ''}} |
22 | 20 | 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}} |
24 | 22 | trigger_event_type: ${{ github.event_name }} |
| 23 | + comment_text: ${{ github.event_name == 'issue_comment' && github.event.comment.body || '' }} |
0 commit comments