somaz94/Compress/Decompress

Compress and decompress files in CI/CD: password-protected zip, SHA256 checksum, and 5 archive formats (zip, tar, tgz, tbz2, txz).

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
commandCommand to perform ("compress" or "decompress").yes
sourceSource directory, file, or glob pattern to compress or decompress. Supports glob patterns like **/*.doc to match multiple files.yes
destDestination directory for the output.no
destfilenameDestination filename for the compressed output.no
excludeFile(s) to exclude from compression process.no
formatCompression format to use. Supported formats: zip, tar, tgz, tbz2, txz.yes
includeRootWhether to include the root folder itself in the compressed file.notrue
preserveGlobStructureWhen using glob patterns, preserve the directory structure in the archive. If false, all matched files are flattened to the root level.nofalse
stripPrefixRemove this prefix from file paths when preserving directory structure. Works only with glob patterns and preserveGlobStructure: true. Example: 'src/' will change 'src/app/main.py' to 'app/main.py' in the archive.no""
fail_on_errorWhether to fail the action if compression/decompression fails.notrue
compression_levelCompression level (0-9). 0 is store only, 9 is maximum compression. Applies to zip, tgz, tbz2, and txz formats.no""
passwordPassword for zip encryption/decryption. Use with secrets for security. Only applies to zip format.no""
verboseEnable verbose logging for debugging.nofalse
namedescription
file_pathThe path to the compressed or decompressed file.
checksumSHA256 checksum of the compressed archive (compress only).