Skip to content

Commit

Permalink
Use choice type for workflow environment selection
Browse files Browse the repository at this point in the history
  • Loading branch information
hdavey-gds committed Oct 24, 2023
1 parent 1079513 commit 08bed92
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/run-flyway-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,15 @@ on:
workflow_dispatch:
inputs:
environment:
type: string
type: choice
required: true
description: AWS environment - one of DEV, TEST, FEATURE, BUILD, STAGING, INTEGRATION or PRODUCTION
description: AWS environment
options: [DEV, TEST, FEATURE, BUILD, STAGING, INTEGRATION, PRODUCTION]
command:
type: choice
required: true
description: Flyway command to run
options:
- info
- migrate
- clean
- clean migrate
options: [info, migrate, clean, clean migrate]

jobs:
validate-environment:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/upload-athena-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ on:
workflow_dispatch:
inputs:
environment:
type: string
type: choice
required: true
description: AWS environment - one of DEV, TEST, FEATURE, BUILD, STAGING, INTEGRATION or PRODUCTION
description: AWS environment
options: [DEV, TEST, FEATURE, BUILD, STAGING, INTEGRATION, PRODUCTION]

jobs:
validate-environment:
Expand Down

0 comments on commit 08bed92

Please sign in to comment.