This action installs ktlint.
inputs:
ktlint_version:
description: 'KTLint version.'
default: '0.42.1'
To run the KTLint action, you need to use a linux machine.
runs-on: ubuntu-latest
steps:
- uses: touchlab-lab/ktlint-action-setup@1.0.0
- run: ktlint --version
steps:
- uses: touchlab-lab/ktlint-action-setup@1.0.0
with:
ktlint_version: 0.40.0
- run: ktlint --version