diff --git a/.github/actions/custom-actions/aselo_beta_custom/action.yml b/.github/actions/custom-actions/aselo_beta_custom/action.yml index 007d5637..e8617147 100644 --- a/.github/actions/custom-actions/aselo_beta_custom/action.yml +++ b/.github/actions/custom-actions/aselo_beta_custom/action.yml @@ -17,32 +17,7 @@ description: 'Sets up environment variables related to non-standard additional f runs: using: "composite" steps: - # Set Twitter variables - - name: Set Aselo Twitter Consumer Key - uses: "marvinpinto/action-inject-ssm-secrets@latest" - with: - ssm_parameter: "TWITTER_CONSUMER_KEY" - env_variable_name: "TWITTER_CONSUMER_KEY" - - name: Set Aselo Twitter Consumer Secret - uses: "marvinpinto/action-inject-ssm-secrets@latest" - with: - ssm_parameter: "TWITTER_CONSUMER_SECRET" - env_variable_name: "TWITTER_CONSUMER_SECRET" - - name: Set helpline Twitter Access Token - uses: "marvinpinto/action-inject-ssm-secrets@latest" - with: - ssm_parameter: "TWITTER_ACCESS_TOKEN_1534172961187500033_AseloBeta" - env_variable_name: "TWITTER_ACCESS_TOKEN" - - name: Set helpline Twitter Access Secret - uses: "marvinpinto/action-inject-ssm-secrets@latest" - with: - ssm_parameter: "TWITTER_ACCESS_TOKEN_SECRET_1534172961187500033_AseloBeta" - env_variable_name: "TWITTER_ACCESS_TOKEN_SECRET" - - name: Set helpline Twitter Flex Flow SID - uses: "marvinpinto/action-inject-ssm-secrets@latest" - with: - ssm_parameter: "STG_TWILIO_AS_TWITTER_FLEX_FLOW_SID" - env_variable_name: "TWITTER_FLEX_FLOW_SID" + - name: Set Aselo Facebook App Secret uses: "marvinpinto/action-inject-ssm-secrets@latest" with: @@ -59,21 +34,7 @@ runs: ssm_parameter: "STG_TWILIO_AS_INSTAGRAM_FLEX_FLOW_SID" env_variable_name: "INSTAGRAM_FLEX_FLOW_SID" # Append environment variables - - name: Add TWITTER_CONSUMER_KEY - run: echo "TWITTER_CONSUMER_KEY=${{ env.TWITTER_CONSUMER_KEY }}" >> .env - shell: bash - - name: Add TWITTER_CONSUMER_SECRET - run: echo "TWITTER_CONSUMER_SECRET=${{ env.TWITTER_CONSUMER_SECRET }}" >> .env - shell: bash - - name: Add TWITTER_ACCESS_TOKEN - run: echo "TWITTER_ACCESS_TOKEN=${{ env.TWITTER_ACCESS_TOKEN }}" >> .env - shell: bash - - name: Add TWITTER_ACCESS_TOKEN_SECRET - run: echo "TWITTER_ACCESS_TOKEN_SECRET=${{ env.TWITTER_ACCESS_TOKEN_SECRET }}" >> .env - shell: bash - - name: Add TWITTER_FLEX_FLOW_SID - run: echo "TWITTER_FLEX_FLOW_SID=${{ env.TWITTER_FLEX_FLOW_SID }}" >> .env - shell: bash + - name: Add FACEBOOK_APP_SECRET run: echo "FACEBOOK_APP_SECRET=${{ env.FACEBOOK_APP_SECRET }}" >> .env shell: bash diff --git a/.github/actions/custom-actions/aselo_development_custom/action.yml b/.github/actions/custom-actions/aselo_development_custom/action.yml index 3b9b7887..5057ff5d 100644 --- a/.github/actions/custom-actions/aselo_development_custom/action.yml +++ b/.github/actions/custom-actions/aselo_development_custom/action.yml @@ -64,31 +64,6 @@ runs: ssm_parameter: /development/iwf/${{inputs.account-sid}}/report_url env_variable_name: "IWF_REPORT_URL" - - name: Set Aselo Twitter Consumer Key - uses: "marvinpinto/action-inject-ssm-secrets@latest" - with: - ssm_parameter: "TWITTER_CONSUMER_KEY" - env_variable_name: "TWITTER_CONSUMER_KEY" - - name: Set Aselo Twitter Consumer Secret - uses: "marvinpinto/action-inject-ssm-secrets@latest" - with: - ssm_parameter: "TWITTER_CONSUMER_SECRET" - env_variable_name: "TWITTER_CONSUMER_SECRET" - - name: Set helpline Twitter Access Token - uses: "marvinpinto/action-inject-ssm-secrets@latest" - with: - ssm_parameter: "TWITTER_ACCESS_TOKEN_1398343158954663937_AseloDev" - env_variable_name: "TWITTER_ACCESS_TOKEN" - - name: Set helpline Twitter Access Secret - uses: "marvinpinto/action-inject-ssm-secrets@latest" - with: - ssm_parameter: "TWITTER_ACCESS_TOKEN_SECRET_1398343158954663937_AseloDev" - env_variable_name: "TWITTER_ACCESS_TOKEN_SECRET" - - name: Set helpline Twitter Flex Flow SID - uses: "marvinpinto/action-inject-ssm-secrets@latest" - with: - ssm_parameter: "DEV_TWILIO_AS_TWITTER_FLEX_FLOW_SID" - env_variable_name: "TWITTER_FLEX_FLOW_SID" - name: Set Aselo Facebook App Secret uses: "marvinpinto/action-inject-ssm-secrets@latest" with: @@ -140,22 +115,6 @@ runs: - name: Add IWF_REPORT_URL run: echo "IWF_REPORT_URL=${{ env.IWF_REPORT_URL }}" >> .env shell: bash - - - name: Add TWITTER_CONSUMER_KEY - run: echo "TWITTER_CONSUMER_KEY=${{ env.TWITTER_CONSUMER_KEY }}" >> .env - shell: bash - - name: Add TWITTER_CONSUMER_SECRET - run: echo "TWITTER_CONSUMER_SECRET=${{ env.TWITTER_CONSUMER_SECRET }}" >> .env - shell: bash - - name: Add TWITTER_ACCESS_TOKEN - run: echo "TWITTER_ACCESS_TOKEN=${{ env.TWITTER_ACCESS_TOKEN }}" >> .env - shell: bash - - name: Add TWITTER_ACCESS_TOKEN_SECRET - run: echo "TWITTER_ACCESS_TOKEN_SECRET=${{ env.TWITTER_ACCESS_TOKEN_SECRET }}" >> .env - shell: bash - - name: Add TWITTER_FLEX_FLOW_SID - run: echo "TWITTER_FLEX_FLOW_SID=${{ env.TWITTER_FLEX_FLOW_SID }}" >> .env - shell: bash - name: Add FACEBOOK_APP_SECRET run: echo "FACEBOOK_APP_SECRET=${{ env.FACEBOOK_APP_SECRET }}" >> .env shell: bash diff --git a/.github/actions/custom-actions/thailand_staging_custom/action.yml b/.github/actions/custom-actions/thailand_staging_custom/action.yml index d04cb17b..caaff17d 100644 --- a/.github/actions/custom-actions/thailand_staging_custom/action.yml +++ b/.github/actions/custom-actions/thailand_staging_custom/action.yml @@ -33,32 +33,6 @@ runs: with: ssm_parameter: "STG_LINE_TH_CHANNEL_ACCESS_TOKEN" env_variable_name: "LINE_CHANNEL_ACCESS_TOKEN" - # Set Twitter variables - - name: Set Aselo Twitter Consumer Key - uses: "marvinpinto/action-inject-ssm-secrets@latest" - with: - ssm_parameter: "TWITTER_CONSUMER_KEY" - env_variable_name: "TWITTER_CONSUMER_KEY" - - name: Set Aselo Twitter Consumer Secret - uses: "marvinpinto/action-inject-ssm-secrets@latest" - with: - ssm_parameter: "TWITTER_CONSUMER_SECRET" - env_variable_name: "TWITTER_CONSUMER_SECRET" - - name: Set helpline Twitter Access Token - uses: "marvinpinto/action-inject-ssm-secrets@latest" - with: - ssm_parameter: "TWITTER_ACCESS_TOKEN_1570374172798238722_lineth_staging" - env_variable_name: "TWITTER_ACCESS_TOKEN" - - name: Set helpline Twitter Access Secret - uses: "marvinpinto/action-inject-ssm-secrets@latest" - with: - ssm_parameter: "TWITTER_ACCESS_TOKEN_SECRET_1570374172798238722_lineth_staging" - env_variable_name: "TWITTER_ACCESS_TOKEN_SECRET" - - name: Set helpline Twitter Flex Flow SID - uses: "marvinpinto/action-inject-ssm-secrets@latest" - with: - ssm_parameter: "STG_TWILIO_TH_TWITTER_FLEX_FLOW_SID" - env_variable_name: "TWITTER_FLEX_FLOW_SID" # Set Instagram variables - name: Set Aselo Facebook App Secret uses: "marvinpinto/action-inject-ssm-secrets@latest" @@ -85,22 +59,6 @@ runs: - name: Add LINE_CHANNEL_ACCESS_TOKEN run: echo "LINE_CHANNEL_ACCESS_TOKEN=${{ env.LINE_CHANNEL_ACCESS_TOKEN }}" >> .env shell: bash - # Append TWITTER environment variables - - name: Add TWITTER_CONSUMER_KEY - run: echo "TWITTER_CONSUMER_KEY=${{ env.TWITTER_CONSUMER_KEY }}" >> .env - shell: bash - - name: Add TWITTER_CONSUMER_SECRET - run: echo "TWITTER_CONSUMER_SECRET=${{ env.TWITTER_CONSUMER_SECRET }}" >> .env - shell: bash - - name: Add TWITTER_ACCESS_TOKEN - run: echo "TWITTER_ACCESS_TOKEN=${{ env.TWITTER_ACCESS_TOKEN }}" >> .env - shell: bash - - name: Add TWITTER_ACCESS_TOKEN_SECRET - run: echo "TWITTER_ACCESS_TOKEN_SECRET=${{ env.TWITTER_ACCESS_TOKEN_SECRET }}" >> .env - shell: bash - - name: Add TWITTER_FLEX_FLOW_SID - run: echo "TWITTER_FLEX_FLOW_SID=${{ env.TWITTER_FLEX_FLOW_SID }}" >> .env - shell: bash # Append INSTAGRAM environment variables - name: Add FACEBOOK_APP_SECRET run: echo "FACEBOOK_APP_SECRET=${{ env.FACEBOOK_APP_SECRET }}" >> .env diff --git a/.github/actions/custom-actions/zambia_production_custom/action.yml b/.github/actions/custom-actions/zambia_production_custom/action.yml index f1cf26ca..054a054b 100644 --- a/.github/actions/custom-actions/zambia_production_custom/action.yml +++ b/.github/actions/custom-actions/zambia_production_custom/action.yml @@ -13,36 +13,10 @@ # along with this program. If not, see https://www.gnu.org/licenses/. name: 'Zambia PRoduction release custom action' -description: 'Adds Twitter and Instagram related environment variables to the Zambia Production environment' +description: 'Adds Instagram related environment variables to the Zambia Production environment' runs: using: "composite" steps: - # Set Twitter variables - - name: Set Aselo Twitter Consumer Key - uses: "marvinpinto/action-inject-ssm-secrets@latest" - with: - ssm_parameter: "TWITTER_CONSUMER_KEY" - env_variable_name: "TWITTER_CONSUMER_KEY" - - name: Set Aselo Twitter Consumer Secret - uses: "marvinpinto/action-inject-ssm-secrets@latest" - with: - ssm_parameter: "TWITTER_CONSUMER_SECRET" - env_variable_name: "TWITTER_CONSUMER_SECRET" - - name: Set helpline Twitter Access Token - uses: "marvinpinto/action-inject-ssm-secrets@latest" - with: - ssm_parameter: "TWITTER_ACCESS_TOKEN_1272835464379105280_clzambia" - env_variable_name: "TWITTER_ACCESS_TOKEN" - - name: Set helpline Twitter Access Secret - uses: "marvinpinto/action-inject-ssm-secrets@latest" - with: - ssm_parameter: "TWITTER_ACCESS_TOKEN_SECRET_1272835464379105280_clzambia" - env_variable_name: "TWITTER_ACCESS_TOKEN_SECRET" - - name: Set helpline Twitter Flex Flow SID - uses: "marvinpinto/action-inject-ssm-secrets@latest" - with: - ssm_parameter: "PROD_TWILIO_ZM_TWITTER_FLEX_FLOW_SID" - env_variable_name: "TWITTER_FLEX_FLOW_SID" # Set IWF credentials - name: Set IWF_API_USERNAME uses: "marvinpinto/action-inject-ssm-secrets@latest" @@ -75,21 +49,6 @@ runs: ssm_parameter: "PROD_ZM_IWF_API_CHANNEL_ID" env_variable_name: "IWF_API_CHANNEL_ID" # Append environment variables - - name: Add TWITTER_CONSUMER_KEY - run: echo "TWITTER_CONSUMER_KEY=${{ env.TWITTER_CONSUMER_KEY }}" >> .env - shell: bash - - name: Add TWITTER_CONSUMER_SECRET - run: echo "TWITTER_CONSUMER_SECRET=${{ env.TWITTER_CONSUMER_SECRET }}" >> .env - shell: bash - - name: Add TWITTER_ACCESS_TOKEN - run: echo "TWITTER_ACCESS_TOKEN=${{ env.TWITTER_ACCESS_TOKEN }}" >> .env - shell: bash - - name: Add TWITTER_ACCESS_TOKEN_SECRET - run: echo "TWITTER_ACCESS_TOKEN_SECRET=${{ env.TWITTER_ACCESS_TOKEN_SECRET }}" >> .env - shell: bash - - name: Add TWITTER_FLEX_FLOW_SID - run: echo "TWITTER_FLEX_FLOW_SID=${{ env.TWITTER_FLEX_FLOW_SID }}" >> .env - shell: bash - name: Add IWF_API_USERNAME run: echo "IWF_API_USERNAME=${{ env.IWF_API_USERNAME }}" >> .env shell: bash diff --git a/.github/actions/custom-actions/zambia_staging_custom/action.yml b/.github/actions/custom-actions/zambia_staging_custom/action.yml index ec6bcdf2..e5554e28 100644 --- a/.github/actions/custom-actions/zambia_staging_custom/action.yml +++ b/.github/actions/custom-actions/zambia_staging_custom/action.yml @@ -13,36 +13,10 @@ # along with this program. If not, see https://www.gnu.org/licenses/. name: 'Zambia Staging release custom action' -description: 'Adds Twitter and Instagram related environment variables to the Zambia Staging environment' +description: 'Adds Instagram related environment variables to the Zambia Staging environment' runs: using: "composite" steps: - # Set Twitter variables - - name: Set Aselo Twitter Consumer Key - uses: "marvinpinto/action-inject-ssm-secrets@latest" - with: - ssm_parameter: "TWITTER_CONSUMER_KEY" - env_variable_name: "TWITTER_CONSUMER_KEY" - - name: Set Aselo Twitter Consumer Secret - uses: "marvinpinto/action-inject-ssm-secrets@latest" - with: - ssm_parameter: "TWITTER_CONSUMER_SECRET" - env_variable_name: "TWITTER_CONSUMER_SECRET" - - name: Set helpline Twitter Access Token - uses: "marvinpinto/action-inject-ssm-secrets@latest" - with: - ssm_parameter: "TWITTER_ACCESS_TOKEN_1409531855708250112_StagingZm" - env_variable_name: "TWITTER_ACCESS_TOKEN" - - name: Set helpline Twitter Access Secret - uses: "marvinpinto/action-inject-ssm-secrets@latest" - with: - ssm_parameter: "TWITTER_ACCESS_TOKEN_SECRET_1409531855708250112_StagingZm" - env_variable_name: "TWITTER_ACCESS_TOKEN_SECRET" - - name: Set helpline Twitter Flex Flow SID - uses: "marvinpinto/action-inject-ssm-secrets@latest" - with: - ssm_parameter: "STG_TWILIO_ZM_TWITTER_FLEX_FLOW_SID" - env_variable_name: "TWITTER_FLEX_FLOW_SID" # Set IWF credentials - name: Set IWF_API_USERNAME uses: "marvinpinto/action-inject-ssm-secrets@latest" @@ -60,21 +34,6 @@ runs: ssm_parameter: "IWF_API_URL" env_variable_name: "IWF_API_URL" # Append environment variables - - name: Add TWITTER_CONSUMER_KEY - run: echo "TWITTER_CONSUMER_KEY=${{ env.TWITTER_CONSUMER_KEY }}" >> .env - shell: bash - - name: Add TWITTER_CONSUMER_SECRET - run: echo "TWITTER_CONSUMER_SECRET=${{ env.TWITTER_CONSUMER_SECRET }}" >> .env - shell: bash - - name: Add TWITTER_ACCESS_TOKEN - run: echo "TWITTER_ACCESS_TOKEN=${{ env.TWITTER_ACCESS_TOKEN }}" >> .env - shell: bash - - name: Add TWITTER_ACCESS_TOKEN_SECRET - run: echo "TWITTER_ACCESS_TOKEN_SECRET=${{ env.TWITTER_ACCESS_TOKEN_SECRET }}" >> .env - shell: bash - - name: Add TWITTER_FLEX_FLOW_SID - run: echo "TWITTER_FLEX_FLOW_SID=${{ env.TWITTER_FLEX_FLOW_SID }}" >> .env - shell: bash - name: Add IWF_API_USERNAME run: echo "IWF_API_USERNAME=${{ env.IWF_API_USERNAME }}" >> .env shell: bash