Skip to content

Commit

Permalink
Use choice type for workflow environment selection
Browse files Browse the repository at this point in the history
Also update @typescript/eslint dependencies
  • Loading branch information
hdavey-gds committed Oct 24, 2023
1 parent 1079513 commit f45e2df
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 61 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
100 changes: 50 additions & 50 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"@types/aws-lambda": "^8.10.125",
"@types/jest": "^29.5.6",
"@types/uuid": "^9.0.6",
"@typescript-eslint/eslint-plugin": "^6.8.0",
"@typescript-eslint/parser": "^6.8.0",
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^6.9.0",
"aws-sdk-client-mock": "^3.0.0",
"esbuild": "^0.19.5",
"esbuild-jest": "^0.5.0",
Expand Down

0 comments on commit f45e2df

Please sign in to comment.