Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
vladislavs-ignatenkovs-asl committed Aug 2, 2024
1 parent fffdf3f commit e8b8256
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/githubaction-comment-apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,18 +176,18 @@ jobs:
find .terraform/modules -mindepth 2 -maxdepth 2 -type d -name 'lambda' | while read lambda_dir; do
module_dir=$(dirname "$lambda_dir")
zip_name="$module_dir/lambda.zip"
temp_zip_name="$(basename "$module_dir").zip"
temp_zip_name="../../$(basename "$module_dir").zip"
echo "Processing directory $lambda_dir"
echo "Target zip file: $zip_name"
# Create a temporary zip file in the parent directory of the module
# Create a temporary zip file in the dev directory
cd "$lambda_dir"
zip -r "../../$temp_zip_name" ./*
zip -r "$temp_zip_name" ./*
cd - > /dev/null
# Move the temporary zip file to the desired location
mv "../../$temp_zip_name" "$zip_name"
mv "$temp_zip_name" "$zip_name"
echo "Zipped contents of $lambda_dir to $zip_name"
done
Expand Down

0 comments on commit e8b8256

Please sign in to comment.