Skip to content

Commit

Permalink
[CI][E2E] Fix scheduler and comments generation
Browse files Browse the repository at this point in the history
  • Loading branch information
wlemkows committed Feb 28, 2024
1 parent 085add3 commit 1265304
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/e2e_core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ on:
description: Tag defifned for the runner
type: string
required: true
trigger:
description: Type of workflow trigger
type: string
required: true

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

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

- name: Add comment to PR
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
if: always()
if: ${{ always() && inputs.trigger != 'schedule' }}
with:
script: |
const adapter = '${{ matrix.adapter.name }}';
const url = '${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}';
const status = ${{ steps.tests.outcome }};
const status = '${{ steps.tests.outcome }}';
const body = `E2E ${adapter} build: \n${url}\n Status: ${status}`;
github.rest.issues.createComment({
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/e2e_cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ jobs:
prefix: "ext_oneapi_"
config: "--cuda"
unit: "gpu"
trigger: "${{github.event_name}}"
1 change: 1 addition & 0 deletions .github/workflows/e2e_opencl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ jobs:
prefix: ""
config: ""
unit: "cpu"
trigger: "${{github.event_name}}"

0 comments on commit 1265304

Please sign in to comment.