Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
box

GitHub Action

Tar action

v1.1.2

Tar action

box

Tar action

A cross platform github action for using tar

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Tar action

uses: a7ul/tar-action@v1.1.2

Learn more about this action in a7ul/tar-action

Choose a version

Tar Github Action

A cross platform github action for using tar. Works on Windows, Mac and Linux vms.

name: "Tar action"
description: "A cross platform github action for using tar."
inputs:
  cwd:
    description: "Current working directory for tar command"
    required: false
  command:
    description: "c = compress"
    required: true
  files:
    description: "List of files or folders to archive"
    required: true
  outPath:
    description: "Path of the output archive (ex: abc.tar.gz)"
    required: true
outputs:
  done:
    description: "returns true if successful"

Usage:

    steps:
      - uses: actions/checkout@master
      - name: Compress action step
        uses: a7ul/tar-action@v1.1.0
        id: compress
        with:
          command: c
          cwd: ./test
          files: |
            ./toCompress
          outPath: yolo.tar.gz
      - name: Extract files
        uses: a7ul/tar-action@v1.1.0
        id: extract
        with:
          command: x
          cwd: ./extract
          files: yolo.tar.gz