-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NZ: Alejandro/nz/cherry picks (#610)
* adding custom action * staging -> production
- Loading branch information
1 parent
172041f
commit ba8869d
Showing
2 changed files
with
56 additions
and
0 deletions.
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
51 changes: 51 additions & 0 deletions
51
.github/actions/custom-actions/youthline_production_custom/action.yml
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,51 @@ | ||
# Copyright (C) 2021-2023 Technology Matters | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Affero General Public License as published | ||
# by the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU Affero General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Affero General Public License | ||
# along with this program. If not, see https://www.gnu.org/licenses/. | ||
|
||
name: 'Youthline Production release custom action' | ||
description: 'Sets up environment variables related to non-standard additional features in use in the production environment' | ||
inputs: | ||
account-sid: | ||
description: 'The Twilio Account SID for this account' | ||
required: true | ||
runs: | ||
using: "composite" | ||
steps: | ||
|
||
# Modica environment variables | ||
- name: Set Modica App Name | ||
uses: "marvinpinto/action-inject-ssm-secrets@latest" | ||
with: | ||
ssm_parameter: "/production/modica/${{inputs.account-sid}}/app_name" | ||
env_variable_name: "MODICA_APP_NAME" | ||
- name: Set Modica App Password | ||
uses: "marvinpinto/action-inject-ssm-secrets@latest" | ||
with: | ||
ssm_parameter: "/production/modica/${{inputs.account-sid}}/app_password" | ||
env_variable_name: "MODICA_APP_PASSWORD" | ||
- name: Set Modica Flex Flow Sid | ||
uses: "marvinpinto/action-inject-ssm-secrets@latest" | ||
with: | ||
ssm_parameter: "/production/twilio/${{inputs.account-sid}}/modica_flex_flow_sid" | ||
env_variable_name: "MODICA_FLEX_FLOW_SID" | ||
|
||
# Append environment variables | ||
- name: Add MODICA_APP_NAME | ||
run: echo "MODICA_APP_NAME=${{ env.MODICA_APP_NAME }}" >> .env | ||
shell: bash | ||
- name: Add MODICA_APP_PASSWORD | ||
run: echo "MODICA_APP_PASSWORD=${{ env.MODICA_APP_PASSWORD }}" >> .env | ||
shell: bash | ||
- name: Add MODICA_FLEX_FLOW_SID | ||
run: echo "MODICA_FLEX_FLOW_SID=${{ env.MODICA_FLEX_FLOW_SID }}" >> .env | ||
shell: bash |