From df30bb6a48e6ae1d59c2d57066cd594a38093421 Mon Sep 17 00:00:00 2001 From: MahdiBM Date: Fri, 5 Jul 2024 18:26:55 +0330 Subject: [PATCH] try fix lambda deploys --- .github/workflows/deploy-all-lambdas.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-all-lambdas.yml b/.github/workflows/deploy-all-lambdas.yml index ecf75ff4..f5a0c3cb 100644 --- a/.github/workflows/deploy-all-lambdas.yml +++ b/.github/workflows/deploy-all-lambdas.yml @@ -28,11 +28,13 @@ jobs: - name: Check out repository # uses: actions/checkout@v3 Needs node 20 which amazonlinux2 doesn't have run: | - git clone https://github.com/${{ github.repository }} - cd penny-bot + printenv + git clone ${{ github.repositoryUrl }} + cd ${{ github.repository_id }} git checkout ${{ github.sha }} - name: Find package names + working-directory: ${{ github.repository_id }} id: find_package_names run: | echo "names=$( @@ -47,6 +49,7 @@ jobs: )" >> $GITHUB_OUTPUT - name: Build and package + working-directory: ${{ github.repository_id }} run: | mkdir zips for name in ${{ steps.find_package_names.outputs.names }}; do @@ -60,6 +63,7 @@ jobs: done - name: Deploy + working-directory: ${{ github.repository_id }} run: | for name in ${{ steps.find_package_names.outputs.names }}; do aws lambda update-function-code \