From 12653041acfa1a64248c4f3985c4ea6132e81b1c Mon Sep 17 00:00:00 2001 From: Weronika Lewandowska Date: Wed, 28 Feb 2024 09:02:26 +0100 Subject: [PATCH] [CI][E2E] Fix scheduler and comments generation --- .github/workflows/e2e_core.yml | 11 ++++++++--- .github/workflows/e2e_cuda.yml | 1 + .github/workflows/e2e_opencl.yml | 1 + 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/e2e_core.yml b/.github/workflows/e2e_core.yml index 3fd858bf8f..11b7221e93 100644 --- a/.github/workflows/e2e_core.yml +++ b/.github/workflows/e2e_core.yml @@ -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 @@ -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 }}'; @@ -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({ diff --git a/.github/workflows/e2e_cuda.yml b/.github/workflows/e2e_cuda.yml index 09d8c71539..433e455eba 100644 --- a/.github/workflows/e2e_cuda.yml +++ b/.github/workflows/e2e_cuda.yml @@ -26,3 +26,4 @@ jobs: prefix: "ext_oneapi_" config: "--cuda" unit: "gpu" + trigger: "${{github.event_name}}" diff --git a/.github/workflows/e2e_opencl.yml b/.github/workflows/e2e_opencl.yml index 54c04845e2..302a9c995a 100644 --- a/.github/workflows/e2e_opencl.yml +++ b/.github/workflows/e2e_opencl.yml @@ -26,3 +26,4 @@ jobs: prefix: "" config: "" unit: "cpu" + trigger: "${{github.event_name}}"