Github Action to extract a various format archive file, and it works on any platform. This action is powered by python's shutil.unpack_archive, and probably lightweight because it works without docker build.
- zip
- tar
- tar.gz (tgz)
- tar.bz2 (tbz2)
- tar.xz (txz)
- name: Extract tgz
uses: ihiroky/extract-action@v1
with:
file_path: path_to_archive_file
extract_dir: path_to_extract_directoryIf you set like this, tmp/zip/hoge/fuga/file and tmp/zip/file is extracted from tmp/a.zip for example.
-
file_path (required)
File path to extract.
-
extract_dir (optional, default:
'.')Directory path to extract archive.
-
verbose: (optional, default:
false)Shows details about the result of running this action.