mirror of
https://github.com/Ku6epXBOCTuK/easy-png-tools.git
synced 2026-11-13 17:08:20 +00:00
24 lines
705 B
YAML
24 lines
705 B
YAML
name: "Setup Cocogitto"
|
|
description: "Installs a specific version of Cocogitto and cleans up the workspace"
|
|
inputs:
|
|
version:
|
|
description: "Cocogitto version to install"
|
|
required: true
|
|
default: "7.0.0"
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Install Cocogitto
|
|
shell: bash
|
|
run: |
|
|
VERSION="${{ inputs.version }}"
|
|
URL="https://github.com/cocogitto/cocogitto/releases/download/${VERSION}/cocogitto-${VERSION}-x86_64-unknown-linux-musl.tar.gz"
|
|
|
|
curl -LOf "$URL"
|
|
tar -xzf "cocogitto-${VERSION}-x86_64-unknown-linux-musl.tar.gz"
|
|
|
|
sudo mv $(find . -name cog -type f -executable) /usr/local/bin/
|
|
git clean -fd
|
|
cog --version
|