Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

int128/akoi-action

Repository files navigation

⚠️ https://github.com/suzuki-shunsuke/akoi has been archived.


akoi-action ts

This is an action to install packages using https://github.com/suzuki-shunsuke/akoi.

This version v2 is written in TypeScript. v1 is still available in v1 branch.

Getting Started

Create .akoi.yml and add packages.

bin_path: '{{.Name}}-{{.Version}}'
link_path: '{{.Name}}'

packages:
  # just an example
  github-comment:
    url: https://github.com/suzuki-shunsuke/github-comment/releases/download/{{.Version}}/github-comment_{{trimPrefix "v" .Version}}_{{.OS}}_{{.Arch}}.tar.gz
    version: v3.0.1
    files:
      - name: github-comment
        archive: github-comment

NOTE: you need to set bin_path and link_path as above.

To install the packages:

jobs:
  test:
    steps:
      - uses: actions/checkout@v2
      - uses: int128/akoi-action@v2

This action downloads the packages into directory {github.workspace}/.akoi/{sha256 digest of akoi.yml} and saves them to cache. It restores the packages from cache next time.

You can set a path to akoi config.

jobs:
  test:
    steps:
      - uses: actions/checkout@v2
      - uses: int128/akoi-action@v2
        with:
          config: path/to/.akoi.yml

Inputs

Name Default Description
config ${{ github.workspace }}/.akoi.yml path to akoi config
version see action.yaml akoi version
base-directory ${{ github.workspace }}/.akoi base directory to download packages

Outputs

Name Description
directory path to binary directory, i.e. {base-directory}/{digest}