diff --git a/.github/actions/deploy_staging/action.yml b/.github/actions/deploy_staging/action.yml index 7b76bfddbf..7b0c2a7b9b 100644 --- a/.github/actions/deploy_staging/action.yml +++ b/.github/actions/deploy_staging/action.yml @@ -59,6 +59,12 @@ runs: rm .ebextensions/*/06_cloudwatch_alarm.config + - name: Calculate Build ID + shell: bash + run: | + build_id=${{ hashFiles('apps/${{ inputs.app_name }}/*.ts', 'apps/${{ inputs.app_name }}/*.tsx') }} + echo "\nREACT_APP_BUILD_ID=$build_id" >> ./.ebstalk.apps.env/${{ inputs.app_name }}.env + - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v4 with: