Skip to content

Commit

Permalink
feat!: rename environment variables passed to hello apps (#29)
Browse files Browse the repository at this point in the history
Following latest spec updates, changes the names of env variables to
match what we call them in the LD UI and docs.
  • Loading branch information
cwaldren-ld authored Apr 29, 2024
1 parent f9d7025 commit c5f14e2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions actions/verify-hello-app/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ inputs:
description: 'AWS role ARN used to pull SDK keys'
required: true
use_server_key:
description: 'Populate LAUNCHDARKLY_SERVER_KEY with a server-side SDK if true'
description: 'Populate LAUNCHDARKLY_SDK_KEY with a server-side SDK key if true'
required: false
default: 'false'
use_client_key:
description: 'Populate LAUNCHDARKLY_CLIENT_KEY with a server-side SDK if true'
description: 'Populate LAUNCHDARKLY_CLIENT_SIDE_ID with a client-side ID if true'
required: false
default: 'false'
use_mobile_key:
description: 'Populate LAUNCHDARKLY_MOBILE_KEY with a server-side SDK if true'
description: 'Populate LAUNCHDARKLY_MOBILE_KEY with a mobile key if true'
required: false
default: 'false'

Expand All @@ -30,14 +30,14 @@ runs:
name: 'Get the server SDK key'
with:
aws_assume_role: ${{ inputs.role_arn }}
ssm_parameter_pairs: '/sdk/common/hello-apps/server-key = LAUNCHDARKLY_SERVER_KEY'
ssm_parameter_pairs: '/sdk/common/hello-apps/server-key = LAUNCHDARKLY_SDK_KEY'

- uses: launchdarkly/gh-actions/actions/[email protected]
if: ${{ inputs.use_client_key == 'true' }}
name: 'Get the client SDK key'
with:
aws_assume_role: ${{ inputs.role_arn }}
ssm_parameter_pairs: '/sdk/common/hello-apps/client-key = LAUNCHDARKLY_CLIENT_KEY'
ssm_parameter_pairs: '/sdk/common/hello-apps/client-key = LAUNCHDARKLY_CLIENT_SIDE_ID'

- uses: launchdarkly/gh-actions/actions/[email protected]
if: ${{ inputs.use_mobile_key == 'true' }}
Expand Down

0 comments on commit c5f14e2

Please sign in to comment.