okay, so sed has to pipe out to a new file and then rename that back … #6559
Workflow file for this run
This file contains hidden or 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: Lint | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| - '!main' | |
| - '!*-main' | |
| pull_request: | |
| branches: | |
| - main | |
| - '*-main' | |
| workflow_dispatch: | |
| permissions: { } | |
| env: | |
| PACKAGE_NAME: smithy-kotlin | |
| jobs: | |
| ktlint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v2 | |
| - name: Configure Gradle | |
| uses: aws/aws-kotlin-repo-tools/.github/actions/configure-gradle@main | |
| - name: Lint ${{ env.PACKAGE_NAME }} | |
| run: | | |
| ./gradlew ktlint |