File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 30
30
description : Tag defifned for the runner
31
31
type : string
32
32
required : true
33
+ trigger :
34
+ description : Type of workflow trigger
35
+ type : string
36
+ required : true
33
37
34
38
permissions :
35
39
contents : read
@@ -63,10 +67,11 @@ jobs:
63
67
64
68
- uses : xt0rted/pull-request-comment-branch@d97294d304604fa98a2600a6e2f916a84b596dc7 # v2.0.0
65
69
id : comment-branch
70
+ if : ${{ always() && inputs.trigger != 'schedule' }}
66
71
67
72
- name : Add comment to PR
68
73
uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
69
- if : always()
74
+ if : ${{ always() && inputs.trigger != 'schedule' }}
70
75
with :
71
76
script : |
72
77
const adapter = '${{ matrix.adapter.name }}';
@@ -180,12 +185,12 @@ jobs:
180
185
181
186
- name : Add comment to PR
182
187
uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
183
- if : always()
188
+ if : ${{ always() && inputs.trigger != 'schedule' }}
184
189
with :
185
190
script : |
186
191
const adapter = '${{ matrix.adapter.name }}';
187
192
const url = '${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}';
188
- const status = ${{ steps.tests.outcome }};
193
+ const status = ' ${{ steps.tests.outcome }}' ;
189
194
const body = `E2E ${adapter} build: \n${url}\n Status: ${status}`;
190
195
191
196
github.rest.issues.createComment({
Original file line number Diff line number Diff line change 26
26
prefix : " ext_oneapi_"
27
27
config : " --cuda"
28
28
unit : " gpu"
29
+ trigger : " ${{github.event_name}}"
Original file line number Diff line number Diff line change 26
26
prefix : " "
27
27
config : " "
28
28
unit : " cpu"
29
+ trigger : " ${{github.event_name}}"
You can’t perform that action at this time.
0 commit comments