Skip to content

Commit

Permalink
chore: fix alpha scale github action (#4936)
Browse files Browse the repository at this point in the history
  • Loading branch information
njtran committed Oct 26, 2023
1 parent be517c8 commit 4ee843d
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/alpha-e2e-scale-trigger.yaml
Expand Up @@ -6,6 +6,22 @@ on:
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'
Expand All @@ -19,8 +35,9 @@ jobs:
with:
suite: Alpha/Scale
git_ref: ${{ needs.resolve.outputs.GIT_REF }}
region: "us-west-2"
enable_metrics: true
region: ${{ inputs.region || 'us-west-2' }}
enable_metrics: ${{ inputs.enable_metrics || true }}
workflow_trigger: "alpha-scale"
cleanup: ${{ inputs.cleanup || true }}
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 comments on commit 4ee843d

Please sign in to comment.