Skip to content

Commit

Permalink
Merge branch 'main' into heathj/upgrade-docker-build-push
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeyheath authored Jan 6, 2024
2 parents 9054e53 + b2a74da commit aefc78a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/conventional-commits/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ runs:
- uses: actions/github-script@v5
with:
script: |
const validator = /^(chore|feat|fix|revert|docs|style)(\((((CCIE|CDI|PRODSEC|SECENG|ONCALL)-[0-9]+)|([a-z]+))\))?(!)?: (.)+$/
const validator = /^(chore|feat|fix|revert|docs|style)(\((((CCIE|CDI|PRODSEC|SECENG|ONCALL)-[0-9]+)|([a-z-]+))\))?(!)?: (.)+$/
const title = context.payload.pull_request.title
const is_valid = validator.test(title)
Expand Down
29 changes: 29 additions & 0 deletions .github/actions/happy-config-set/action.yml
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 ""

0 comments on commit aefc78a

Please sign in to comment.