mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-28 00:49:26 -05:00
ci: trigger notify only in scheduled workflows (#1671)
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
3cb6ab04f1
commit
e335421dd2
5
.github/workflows/e2e-test-daily.yml
vendored
5
.github/workflows/e2e-test-daily.yml
vendored
@ -102,7 +102,10 @@ jobs:
|
|||||||
gcpServiceAccount: "constellation-iam-e2e@constellation-331613.iam.gserviceaccount.com"
|
gcpServiceAccount: "constellation-iam-e2e@constellation-331613.iam.gserviceaccount.com"
|
||||||
|
|
||||||
- name: Notify about failure
|
- name: Notify about failure
|
||||||
if: failure() && github.ref == 'refs/heads/main'
|
if: |
|
||||||
|
failure() &&
|
||||||
|
github.ref == 'refs/heads/main' &&
|
||||||
|
github.event == 'schedule'
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
uses: ./.github/actions/notify_failure
|
uses: ./.github/actions/notify_failure
|
||||||
with:
|
with:
|
||||||
|
6
.github/workflows/e2e-test-weekly.yml
vendored
6
.github/workflows/e2e-test-weekly.yml
vendored
@ -225,7 +225,10 @@ jobs:
|
|||||||
gcpServiceAccount: "constellation-iam-e2e@constellation-331613.iam.gserviceaccount.com"
|
gcpServiceAccount: "constellation-iam-e2e@constellation-331613.iam.gserviceaccount.com"
|
||||||
|
|
||||||
- name: Notify about failure
|
- name: Notify about failure
|
||||||
if: failure() && github.ref == 'refs/heads/main'
|
if: |
|
||||||
|
failure() &&
|
||||||
|
github.ref == 'refs/heads/main' &&
|
||||||
|
github.event == 'schedule'
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
uses: ./.github/actions/notify_failure
|
uses: ./.github/actions/notify_failure
|
||||||
with:
|
with:
|
||||||
@ -254,3 +257,4 @@ jobs:
|
|||||||
cloudProvider: ${{ matrix.cloudProvider }}
|
cloudProvider: ${{ matrix.cloudProvider }}
|
||||||
workerNodesCount: 2
|
workerNodesCount: 2
|
||||||
controlNodesCount: 3
|
controlNodesCount: 3
|
||||||
|
scheduled: ${{ github.event == 'schedule' }}
|
||||||
|
16
.github/workflows/e2e-upgrade.yml
vendored
16
.github/workflows/e2e-upgrade.yml
vendored
@ -37,6 +37,11 @@ on:
|
|||||||
description: Microservice version to target for the upgrade, empty for target's default version.
|
description: Microservice version to target for the upgrade, empty for target's default version.
|
||||||
type: string
|
type: string
|
||||||
required: false
|
required: false
|
||||||
|
scheduled:
|
||||||
|
description: Don't set this when triggering manually.
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
required: false
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
cloudProvider:
|
cloudProvider:
|
||||||
@ -72,6 +77,11 @@ on:
|
|||||||
description: Kubernetes version to target for the upgrade, empty for target's default version.
|
description: Kubernetes version to target for the upgrade, empty for target's default version.
|
||||||
type: string
|
type: string
|
||||||
required: false
|
required: false
|
||||||
|
scheduled:
|
||||||
|
description: Whether this is a scheduled run.
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
required: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
e2e-upgrade:
|
e2e-upgrade:
|
||||||
@ -187,7 +197,11 @@ jobs:
|
|||||||
gcpServiceAccount: "constellation-iam-e2e@constellation-331613.iam.gserviceaccount.com"
|
gcpServiceAccount: "constellation-iam-e2e@constellation-331613.iam.gserviceaccount.com"
|
||||||
|
|
||||||
- name: Notify about failure
|
- name: Notify about failure
|
||||||
if: failure() && github.ref == 'refs/heads/main'
|
if: |
|
||||||
|
failure() &&
|
||||||
|
github.ref == 'refs/heads/main' &&
|
||||||
|
github.event == 'workflow_call' &&
|
||||||
|
inputs.scheduled == 'true'
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
uses: ./.github/actions/notify_failure
|
uses: ./.github/actions/notify_failure
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user