diff --git a/.github/actions/main-action/action.yml b/.github/actions/main-action/action.yml index 9acbad7af6..4f4d60cf22 100644 --- a/.github/actions/main-action/action.yml +++ b/.github/actions/main-action/action.yml @@ -73,6 +73,16 @@ runs: with: ssm_parameter: "ASELO_DEPLOYS_CHANNEL_ID" env_variable_name: "ASELO_DEPLOYS_CHANNEL_ID" + - name: Set Google Sheets credentials + uses: "marvinpinto/action-inject-ssm-secrets@latest" + with: + ssm_parameter: "GOOGLE_SHEETS_CREDENTIALS" + env_variable_name: "GOOGLE_SHEETS_CREDENTIALS" + - name: Set Google Sheets ID + uses: "marvinpinto/action-inject-ssm-secrets@latest" + with: + ssm_parameter: "CD_GOOGLE_SHEET_ID" + env_variable_name: "GOOGLE_SHEET_ID" # Create temporal files for the release - name: Create appConfig.js run: cp ./public/appConfig.template.deploy.js ./public/appConfig.js @@ -142,7 +152,7 @@ runs: slack-message: "`[FLEX]` Deployment to `${{ inputs.helpline-id }}` of ${{ github.ref_type }} `${{ github.ref_name }}` requested by `${{ github.triggering_actor }}` completed using workflow '${{ github.workflow }}' with SHA ${{ github.sha }} :rocket:." env: SLACK_BOT_TOKEN: ${{ env.GITHUB_ACTIONS_SLACK_BOT_TOKEN }} - # Update deployment matrix with script + # Update deployment matrix with script and ssm parameters - name: Update deployment matrix uses: ./.github/actions/deployment-matrix with: @@ -150,5 +160,5 @@ runs: service_repo: 'flex-plugins' environment: ${{ inputs.environment}} version_tag: ${{ github.ref_name }} - GOOGLE_SHEETS_CREDENTIALS: ${{ secrets.GOOGLE_SHEETS_CREDENTIALS }} - GOOGLE_SHEET_ID: ${{ secrets.GOOGLE_SHEET_ID }} \ No newline at end of file + GOOGLE_SHEETS_CREDENTIALS: ${{ env.GOOGLE_SHEETS_CREDENTIALS }} + GOOGLE_SHEET_ID: ${{ env.GOOGLE_SHEET_ID }}