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/[email protected]
- run: ktlint --version
steps:
- uses: touchlab-lab/[email protected]
with:
ktlint_version: 0.40.0
- run: ktlint --version