https://github.com/a7ul/tar-action
A cross platform github action for using tar. Works on windows, mac and linux
https://github.com/a7ul/tar-action
Last synced: about 1 year ago
JSON representation
A cross platform github action for using tar. Works on windows, mac and linux
- Host: GitHub
- URL: https://github.com/a7ul/tar-action
- Owner: a7ul
- License: mit
- Created: 2020-02-21T19:53:32.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-10T23:51:56.000Z (about 2 years ago)
- Last Synced: 2025-04-24T05:25:42.622Z (about 1 year ago)
- Language: JavaScript
- Size: 117 KB
- Stars: 24
- Watchers: 4
- Forks: 9
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tar Github Action
A cross platform github action for using tar.
Works on Windows, Mac and Linux vms.
```yaml
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
```