mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04: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"
|
||||
|
||||
- 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
|
||||
uses: ./.github/actions/notify_failure
|
||||
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"
|
||||
|
||||
- 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
|
||||
uses: ./.github/actions/notify_failure
|
||||
with:
|
||||
@ -254,3 +257,4 @@ jobs:
|
||||
cloudProvider: ${{ matrix.cloudProvider }}
|
||||
workerNodesCount: 2
|
||||
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.
|
||||
type: string
|
||||
required: false
|
||||
scheduled:
|
||||
description: Don't set this when triggering manually.
|
||||
type: boolean
|
||||
default: false
|
||||
required: false
|
||||
workflow_call:
|
||||
inputs:
|
||||
cloudProvider:
|
||||
@ -72,6 +77,11 @@ on:
|
||||
description: Kubernetes version to target for the upgrade, empty for target's default version.
|
||||
type: string
|
||||
required: false
|
||||
scheduled:
|
||||
description: Whether this is a scheduled run.
|
||||
type: boolean
|
||||
default: false
|
||||
required: false
|
||||
|
||||
jobs:
|
||||
e2e-upgrade:
|
||||
@ -187,7 +197,11 @@ jobs:
|
||||
gcpServiceAccount: "constellation-iam-e2e@constellation-331613.iam.gserviceaccount.com"
|
||||
|
||||
- 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
|
||||
uses: ./.github/actions/notify_failure
|
||||
with:
|
||||
|
Loading…
Reference in New Issue
Block a user