Skip to content

Commit

Permalink
try fix lambda deploys
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiBM committed Jul 5, 2024
1 parent 6a2b62a commit df30bb6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/deploy-all-lambdas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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=$(
Expand All @@ -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
Expand All @@ -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 \
Expand Down

0 comments on commit df30bb6

Please sign in to comment.