CP-8108: Use AWS Secrets Manager to store envs #21
Workflow file for this run
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
name: Bitrise Envs Sync | |
on: | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: ['development'] | |
workflow_dispatch: | |
jobs: | |
upload-envs-to-bitrise: | |
name: Upload envs to Bitrise | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: Configure AWS Credentials Action for GitHub Actions | |
uses: aws-actions/[email protected] | |
with: | |
aws-region: us-east-2 | |
role-to-assume: arn:aws:iam::975050371175:role/github-sa-role | |
role-session-name: githubsa | |
- name: Retrieve envs from AWS Secrets Manager | |
working-directory: packages/core-mobile/scripts/github | |
run: | | |
./fetchEnvsFromAWS.sh "core/dev/mobile/.env.development.test" ".env.test" | |
cat .env.test |