1name: "Unarchive tar"
 2description: "Download and unarchive tar into directory"
 3inputs:
 4  url:
 5    description: "URL of the tar archive"
 6    required: true
 7  path:
 8    description: "Directory to unarchive into"
 9    required: true
10  type:
11    description: "Compression type (tar option)"
12    required: false
13    default: "J"
14  strip:
15    description: "Strip components"
16    required: false
17    default: "0"
18
19runs:
20  using: "composite"
21  steps:
22    - name: Unarchive into directory
23      shell: bash
24      run: |
25        mkdir -p ${{ inputs.path }}
26        cd ${{ inputs.path }}
27        curl --no-progress-meter ${{ inputs.url }} | tar -${{ inputs.type }}x --strip-components=${{ inputs.strip }}