https://github.com/doist/ktlint-action
GitHub action that runs a ktlint against changed files.
https://github.com/doist/ktlint-action
Last synced: 5 months ago
JSON representation
GitHub action that runs a ktlint against changed files.
- Host: GitHub
- URL: https://github.com/doist/ktlint-action
- Owner: Doist
- Created: 2020-09-04T15:07:23.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-04T06:50:06.000Z (over 2 years ago)
- Last Synced: 2025-03-06T13:39:11.954Z (over 1 year ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 13
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GitHub Action - ktlint check
GitHub action that runs a ktlint against changed files.
## Example
```yml
on:
pull_request:
branches:
- dev
jobs:
style-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Fetch dev branch
run: git fetch origin dev
- name: Run ktlint against dev
uses: Doist/ktlint-action@master
with:
args: "--android --relative"
target: "origin/dev"
```