Skip to content

Commit 12f4ba6

Browse files
committed
feat: support "custom_zip_flags" for zip binary
1 parent 85e7d52 commit 12f4ba6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

action.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ inputs:
2828
archive:
2929
description: 'Zip to be used for deployment, instead of archiving a directory.'
3030
required: false
31+
custom_zip_flags:
32+
description: 'Custom flags to be passed to zip during archiving.'
33+
required: false
3134
excluded_files:
3235
description: 'Files to be excluded during archiving (space delimited).'
3336
required: false

deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ if [ -z "$INPUT_ARCHIVE" ]; then
6464
cd "$DIR_TO_ZIP";
6565
fi
6666

67-
zip -r --quiet "$ZIP_FILENAME" . -x "@$EXCLUSION_FILE"
67+
zip "$INPUT_CUSTOM_ZIP_FLAGS" -r --quiet "$ZIP_FILENAME" . -x "@$EXCLUSION_FILE"
6868
if [ ! -f "$ZIP_FILENAME" ]; then
6969
echo "::error::$ZIP_FILENAME was not generated properly (zip generation failed)."
7070
exit 1;

0 commit comments

Comments
 (0)