Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 548 Bytes

README.md

File metadata and controls

39 lines (28 loc) · 548 Bytes

touchlab-lab/ktlint-action-setup

This action installs ktlint.

Input

inputs:
  ktlint_version:
    description: 'KTLint version.'
    default: '0.42.1'

Usage

To run the KTLint action, you need to use a linux machine.

runs-on: ubuntu-latest

Default

steps:
  - uses: touchlab-lab/[email protected]
  - run: ktlint --version

Specify ktlint version

steps:
  - uses: touchlab-lab/[email protected]
    with:
        ktlint_version: 0.40.0
  - run: ktlint --version