Skip to content

Commit e0393a4

Browse files
authored
Merge pull request #1391 from wlemkows/e2e-cuda-pr
[CI][E2E] Fix scheduler and comments generation
2 parents 085add3 + 1265304 commit e0393a4

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

.github/workflows/e2e_core.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ on:
3030
description: Tag defifned for the runner
3131
type: string
3232
required: true
33+
trigger:
34+
description: Type of workflow trigger
35+
type: string
36+
required: true
3337

3438
permissions:
3539
contents: read
@@ -63,10 +67,11 @@ jobs:
6367
6468
- uses: xt0rted/pull-request-comment-branch@d97294d304604fa98a2600a6e2f916a84b596dc7 # v2.0.0
6569
id: comment-branch
70+
if: ${{ always() && inputs.trigger != 'schedule' }}
6671

6772
- name: Add comment to PR
6873
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
69-
if: always()
74+
if: ${{ always() && inputs.trigger != 'schedule' }}
7075
with:
7176
script: |
7277
const adapter = '${{ matrix.adapter.name }}';
@@ -180,12 +185,12 @@ jobs:
180185

181186
- name: Add comment to PR
182187
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
183-
if: always()
188+
if: ${{ always() && inputs.trigger != 'schedule' }}
184189
with:
185190
script: |
186191
const adapter = '${{ matrix.adapter.name }}';
187192
const url = '${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}';
188-
const status = ${{ steps.tests.outcome }};
193+
const status = '${{ steps.tests.outcome }}';
189194
const body = `E2E ${adapter} build: \n${url}\n Status: ${status}`;
190195
191196
github.rest.issues.createComment({

.github/workflows/e2e_cuda.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ jobs:
2626
prefix: "ext_oneapi_"
2727
config: "--cuda"
2828
unit: "gpu"
29+
trigger: "${{github.event_name}}"

.github/workflows/e2e_opencl.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ jobs:
2626
prefix: ""
2727
config: ""
2828
unit: "cpu"
29+
trigger: "${{github.event_name}}"

0 commit comments

Comments
 (0)