Files
nixarr/.github/actions/download-artifact/action.yml
T
2024-02-20 15:47:20 +01:00

32 lines
784 B
YAML

name: Download artifact
description: Wrapper around GitHub's official action, with additional extraction before download
# https://github.com/actions/download-artifact/blob/main/action.yml
inputs:
name:
description: Artifact name
required: true
path:
description: Destination path
required: false
default: .
runs:
using: composite
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: ${{ inputs.name }}
path: ${{ inputs.path }}
- name: Extract artifacts
run: tar -xvf ${{ inputs.name }}.tar
shell: bash
working-directory: ${{ inputs.path }}
- name: Remove archive
run: rm -f ${{ inputs.name }}.tar
shell: bash
working-directory: ${{ inputs.path }}