docs(README): Add dokka info #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run ktlint on push | |
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
ktlint: | |
name: Run ktlint formatter | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Configure git | |
run: | | |
git config user.name "Github Action" | |
git config user.email "<>" | |
- name: Setup JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: zulu | |
java-version: 17 | |
- name: Format | |
run: bash ./gradlew ktlintFormat | |
- name: Commit and push | |
env: | |
BRANCH: ${{ github.ref }} | |
run: | | |
git diff-index --quiet HEAD || (git commit -a -m "ci(autoformat): ktlint" && git diff-index --quiet HEAD) |