Files
Techmino/.github/actions/get-cc/action.yml
Particle_G aedb541f68 Use new CI system (#732)
* - Init new CI/CD system

* - Update resources

* - Update android assets

* - Update iOS assets

* - Use stable version

* - Fix apple bundle id

* - Use libs-path

* - Try modify iOS love source codes

* - Update patch

* - Try add ColdClear to macOS

* - Try add Cold Clear to Linux

* - Fix download ColdClear

* - Change inputs order

* - Try new get-CC

* - Fix iOS
2022-07-29 18:21:46 +08:00

33 lines
928 B
YAML

name: 'get cc'
description: 'download cc into specific dir'
inputs:
tag:
required: false
default: "11.4"
platform:
required: true
dir:
required: false
default: '.'
repo:
required: false
default: 26F-Studio/cold_clear_ai_love2d_wrapper
temp-file:
required: false
default: temp.zip
runs:
using: "composite"
steps:
- run: |
echo "::set-output name=tag::"$(if [ -z "${{ inputs.tag }}" ]
then curl -w '%{url_effective}' -I -L -s -S https://github.com/${{ inputs.repo }}/releases/latest -o /dev/null | grep -o '\<[^/]*$'
else echo ${{ inputs.tag }}
fi)
id: get-tag
shell: bash
- uses: ./.github/actions/get-unzip
with:
url: https://github.com/${{ inputs.repo }}/releases/download/${{ steps.get-tag.outputs.tag }}/${{ inputs.platform }}.zip
dir: ${{ inputs.dir }}
temp-file: ${{ inputs.temp-file }}