-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into heathj/upgrade-docker-build-push
- Loading branch information
Showing
2 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Set app configs with happy config | ||
description: This workflow will set an app config in a given environment using happy config | ||
inputs: | ||
app_config_name: | ||
description: The name of the app config to set | ||
required: true | ||
type: string | ||
app_config_value: | ||
description: The value to set for the app config | ||
required: true | ||
type: string | ||
happy_env: | ||
description: The happy environment to set the app config in | ||
required: true | ||
type: string | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Get Id Token | ||
uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
const id_token = await core.getIDToken() | ||
core.setOutput('id_token', id_token) | ||
core.exportVariable('id_token', id_token); | ||
- name: Set env var | ||
shell: bash | ||
run: | | ||
HAPPY_OIDC_ID_TOKEN=${{env.id_token}} happy config set ${{ inputs.env_var_name }} ${{ inputs.env_var_value }} --env ${{ inputs.happy_env }} --aws-profile "" |