Skip to content

PR review sync envionment variables #20

PR review sync envionment variables

PR review sync envionment variables #20

name: PR review sync envionment variables
on:
workflow_run:
workflows: ["Deploy to Staging"]
types:
- completed
env:
AWS_REGION: ca-central-1
jobs:
deploy-form-viewer-service:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@3c981da079c1adfee00f5067fc0659875b5c1253
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}
- name: Sync environment variables
run: |
./bin/pr-review-sync-vars.sh > /dev/null 2>&1