From 99cdeb18907c989d58feb86cb4c873405bfcfd4b Mon Sep 17 00:00:00 2001 From: Rick Busarow Date: Wed, 21 Jul 2021 20:35:37 -0500 Subject: [PATCH] disable ktlint for dependabot PRs --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 99f03eeb..37194b2a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,22 +41,26 @@ jobs: steps: - uses: actions/checkout@v2 + if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' with: ref: ${{ github.event.pull_request.head.ref }} token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} fetch-depth: 0 - name: Set up JDK + if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' uses: actions/setup-java@v1 with: java-version: 14 # formats all kotlin files - name: KtLint format + if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' run: ./gradlew ktlintformat -q # If KtLint generated changes, commit and push those changes. - name: commit changes + if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' uses: stefanzweifel/git-auto-commit-action@v4 with: commit_message: Apply KtLint format