Skip to content

Latest commit

 

History

History
23 lines (22 loc) · 1.11 KB

README.md

File metadata and controls

23 lines (22 loc) · 1.11 KB

Knative Functions as Github Action!

Knative Functions' Github Action, so you can get Functions in your workflows! Automatically determines what os the GH Runner has to get the right binary. You can change where you want the func to be downloaded with destination - regardless, it will be in $PATH! By default, uses latest version, but you can specify which one you want using version.

action.yml -- action yaml with descriptions

name: 'My Kn-Func'
description: 'This action does custom stuff for it is custom'
inputs:
  name:
    description: '(optional) Name of the Function binary. It will be available in the runner under this name(defaults to "func")'
  binary:
    description: '(optional) Binary you want to download (exact string expected), otherwise will be determined via the OS of GH Runner'
  version:
    description: '(optional) Provide version to download. Any version in release pages works https://github.com/knative/func/tags'
  destination:
    description: '(optional) Provide a path where to move the desired downloaded binary, otherwise cwd is used'
runs:
  using: 'node20'
  main: 'index.js'