Files
pulumi-incus/.github/actions/download-sdk/action.yml

20 lines
633 B
YAML

name: Download SDK asset
description: Restores the SDK asset for a language.
inputs:
language:
required: true
description: One of nodejs, python, dotnet, go, java
runs:
using: "composite"
steps:
- name: Download ${{ inputs.language }} SDK
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
with:
name: ${{ inputs.language }}-sdk.tar.gz
path: ${{ github.workspace}}/sdk/
- name: Uncompress SDK folder
shell: bash
run: tar -zxf ${{ github.workspace }}/sdk/${{ inputs.language }}.tar.gz -C ${{ github.workspace }}/sdk/${{ inputs.language }}