Actualiser entrypoint.sh

This commit is contained in:
Stan 2024-07-25 22:03:16 +00:00 committed by Stanislas Daniel Claude Dolcini
parent 54de268522
commit d4c2ff2d69
Signed by: Stan
GPG Key ID: 244943DFF8370D60

View File

@ -6,8 +6,10 @@ if [ -z "$INPUT_DIRECTORY" ]; then
INPUT_DIRECTORY="."
fi
# Create the output directory
OUTPUT_DIR=/github/workspace/output
if [ -z "$OUTPUT_DIR" ]; then
OUTPUT_DIR="${GITHUB_WORKSPACE}/output"
fi
mkdir -m 777 -p $OUTPUT_DIR
# Set the output file path/filename
@ -31,3 +33,5 @@ for item in $INPUT_REMOVE_FROM_PYROMOD; do
fi
zip -d "$OUTPUT_FILE" "$item"
done
ls -lah $OUTPUT_DIR