-
Notifications
You must be signed in to change notification settings - Fork 985
44 lines (44 loc) · 1.32 KB
/
e2e-scale-trigger.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: E2EScaleTrigger
on:
schedule:
- cron: '7 18 * * *'
workflow_run:
workflows: [ApprovalComment]
types: [completed]
workflow_dispatch:
inputs:
region:
required: true
default: 'us-west-2'
type: choice
options:
- "us-east-1"
- "us-west-2"
cleanup:
required: true
default: true
type: boolean
enable_metrics:
required: true
default: false
type: boolean
jobs:
resolve:
if: (github.repository == 'aws/karpenter' && (github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success')) || github.event_name == 'workflow_dispatch'
uses: ./.github/workflows/resolve-args.yaml
with:
allowed_comment: "scale"
scale:
needs: [resolve]
if: needs.resolve.outputs.SHOULD_RUN == 'true'
uses: ./.github/workflows/e2e.yaml
with:
suite: Beta/Scale
git_ref: ${{ needs.resolve.outputs.GIT_REF }}
region: ${{ inputs.region || 'us-west-2' }}
enable_metrics: ${{ inputs.enable_metrics || true }}
workflow_trigger: "scale"
# Default to true unless using a workflow_dispatch
cleanup: ${{ github.event_name != 'workflow_dispatch' && true || inputs.cleanup }}
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}