Skip to content
terminal

GitHub Action

Kit BASH

v1.0.3 Latest version

Kit BASH

terminal

Kit BASH

General kit functions to improve user experience of bash `run` steps

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Kit BASH

uses: vbem/kit.bash@v1.0.3

Learn more about this action in vbem/kit.bash

Choose a version

kit.bash

Testing Super Linter GitHub release (latest SemVer) Marketplace

About

This action provides general kit functions to improve user experience of bash 'run' steps.

Example usage

- uses: vbem/kit.bash@v1
  id: kit

- run: |
    ${{ steps.kit.outputs.source }} # Load kit.bash functions into current shell
    kit::log::stderr DEBUG 'This is a DEBUG message'
    kit::log::stderr INFO 'This is a INFO message'
    kit::log::stderr WANR 'This is a WARN message'
    kit::log::stderr ERROR 'This is a ERROR message'
    jq -Ce <<< '${{ toJson(steps) }}' | kit::wf::group 'Context "steps"'
    kit::wf::output 'some-output-name' <<< "some-output-value"
    kit::wf::env 'OS_RELEASE' < /etc/os-release
    kit::wf::summary <<< '### Hello world! :rocket:'

Outputs

ID Type Description
entrypoint String Path to 'kit.bash' entrypoint
source String Command to source 'kit.bash' entrypoint in current shell