Some checks are pending
Copilot Setup Steps / copilot-setup-steps (push) Waiting to run
Check Pre-Tokenizer Hashes / pre-tokenizer-hashes (push) Waiting to run
Python check requirements.txt / check-requirements (push) Waiting to run
Python Type-Check / python type-check (push) Waiting to run
Update Operations Documentation / update-ops-docs (push) Waiting to run
28 lines
693 B
YAML
28 lines
693 B
YAML
name: "Unarchive tar"
|
|
description: "Download and unarchive tar into directory"
|
|
inputs:
|
|
url:
|
|
description: "URL of the tar archive"
|
|
required: true
|
|
path:
|
|
description: "Directory to unarchive into"
|
|
required: true
|
|
type:
|
|
description: "Compression type (tar option)"
|
|
required: false
|
|
default: "J"
|
|
strip:
|
|
description: "Strip components"
|
|
required: false
|
|
default: "0"
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Unarchive into directory
|
|
shell: bash
|
|
run: |
|
|
mkdir -p ${{ inputs.path }}
|
|
cd ${{ inputs.path }}
|
|
curl --no-progress-meter ${{ inputs.url }} | tar -${{ inputs.type }}x --strip-components=${{ inputs.strip }}
|