Skip to content

use path in checkout #4826

use path in checkout

use path in checkout #4826

Workflow file for this run

name: Lint
on:
push:
branches:
- '**'
- '!main'
pull_request:
branches: [ main ]
workflow_dispatch:
env:
PACKAGE_NAME: smithy-kotlin
jobs:
ktlint:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
path: 'smithy-kotlin'
- name: Configure Gradle
uses: ./smithy-kotlin/.github/actions/custom-gradle-distribution-url
- name: Lint ${{ env.PACKAGE_NAME }}
run: |
./gradlew ktlint