Files
Techmino/.github/actions/get-unzip/action.yml
Imple Lee 25b5f53f34 update cc-related CI (#387)
* merge get-cc-url into get-version

* add `get-cc`

* fix

* fix again

* fix

* fix

* fix macos

* remove `apt update`

* fix macos

* rename `get-version` -> `get-info`

* rm unnecessary file
2021-10-17 14:23:36 +08:00

19 lines
388 B
YAML

name: 'get and unzip'
description: 'cURL and then 7-zip x'
inputs:
url:
required: true
dir:
required: false
default: '.'
temp-file:
required: false
default: temp.zip
runs:
using: "composite"
steps:
- run: curl -L ${{ inputs.url }} -o ${{ inputs.temp-file }}
shell: bash
- run: 7z x ${{ inputs.temp-file }} -o${{ inputs.dir }}
shell: bash