Skip to content

Commit

Permalink
Pass parameters to reusable wf as JSON 7
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenhand committed Aug 28, 2023
1 parent 9f6b73d commit 07aee59
Showing 1 changed file with 25 additions and 26 deletions.
51 changes: 25 additions & 26 deletions .github/workflows/deploy-all-staging-accounts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,32 +21,31 @@ on:

jobs:
deploy-helplines:
env:
helplines: [
'AS',
'CA',
'CL',
'PH',
'ET',
'JM',
'MW',
'IN',
'RO',
'BR',
'ZA',
'CO',
'TH',
'UK',
'HU',
'ZM',
'ZW',
'PL',
'MT',
'NZ'
]
environments: [ STG ]
uses: ./.github/workflows/deploy-multiple-accounts.yml
secrets: inherit
with:
helplines: ${{ toJson(env.helplines) }}
environments: ${{ toJson(env.environments) }}
helplines: -|
'[
"AS",
"CA",
"CL",
"PH",
"ET",
"JM",
"MW",
"IN",
"RO",
"BR",
"ZA",
"CO",
"TH",
"UK",
"HU",
"ZM",
"ZW",
"PL",
"MT",
"NZ"
]'
environments: '[ "STG" ]'

0 comments on commit 07aee59

Please sign in to comment.