From ed2c1d18b13f3d7f1ccdf475dec68838a17f4633 Mon Sep 17 00:00:00 2001 From: Dima Ryazanov Date: Fri, 9 Feb 2024 13:30:48 -0800 Subject: [PATCH] wip --- .github/workflows/deploy-lambdas.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-lambdas.yml b/.github/workflows/deploy-lambdas.yml index 0be2379d2f3..8729b133c70 100644 --- a/.github/workflows/deploy-lambdas.yml +++ b/.github/workflows/deploy-lambdas.yml @@ -2,8 +2,8 @@ name: Deploy lambdas to S3 and ECR on: push: - branches: - - master + # branches: + # - master paths: - '.github/workflows/deploy-lambdas.yml' - 'lambdas/**' @@ -51,6 +51,9 @@ jobs: aws-region: us-east-1 - name: Upload zips to Prod S3 run: | + git config --get remote.origin.url + git diff-index HEAD -- + git rev-parse HEAD s3_key="${{ matrix.path }}/${{ github.sha }}.zip" ./lambdas/scripts/upload_zip.sh ./out.zip "$AWS_REGION" "$s3_key" - name: Configure AWS credentials from GovCloud account