Skip to content

datadecay/extract-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

extract-action

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.

Supported format

  • zip
  • tar
  • tar.gz (tgz)
  • tar.bz2 (tbz2)
  • tar.xz (txz)

Usage

      - name: Extract tgz
        uses: ihiroky/extract-action@v1
        with:
          file_path: path_to_archive_file
          extract_dir: path_to_extract_directory

If you set like this, tmp/zip/hoge/fuga/file and tmp/zip/file is extracted from tmp/a.zip for example.

Arguments

  • 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.

About

Github Action to extract an archive file for your artifacts on any platform.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%