Skip to content

Commit

Permalink
fix: aws-ci syntax (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
levisingularity authored Nov 21, 2023
1 parent 549a830 commit 0743b0b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/aws-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ jobs:

- name: Update lambda function
run: |-
for dir in */; do
if [[ $dir != .* ]]; then
FUNC_NAME=$(basename "$dir")
for dir in */; do
if [[ $dir != .* ]]; then
FUNC_NAME=$(basename "$dir")
aws lambda update-function-code --function-name ${{ env.FUNC_NAME }} --s3-bucket ${{ env.AWS_S3_BUCKET }} --s3-key ${{ env.AWS_S3_BUCKET_KEY }}/${{ env.FUNC_NAME }}.zip --publish --region ${{ env.AWS_REGION }}
fi
done
aws lambda update-function-code --function-name ${{ env.FUNC_NAME }} --s3-bucket ${{ env.AWS_S3_BUCKET }} --s3-key ${{ env.AWS_S3_BUCKET_KEY }}/${{ env.FUNC_NAME }}.zip --publish --region ${{ env.AWS_REGION }}
fi
done

0 comments on commit 0743b0b

Please sign in to comment.