Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
terminal

GitHub Action

Setup shfmt

v0.1.0 Pre-release

Setup shfmt

terminal

Setup shfmt

Download the shfmt binary and add it to the PATH

Installation

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

              

- name: Setup shfmt

uses: mfinelli/[email protected]

Learn more about this action in mfinelli/setup-shfmt

Choose a version

setup-shfmt

This action downloads shfmt binary and adds it to the PATH.

Inputs

Name Type Description
shfmt-version String The version to use or latest (default)

Outputs

Example usage

To use the latest shfmt:

steps:
  - uses: mfinelli/setup-shfmt@v1
  - run: shfmt -d script.bash

Or with a specific version:

steps:
  - uses: mfinelli/setup-shfmt@v1
    with:
      shfmt-version: 3.3.1
  - run: shfmt -d script.bash