Skip to content

Commit

Permalink
Merge pull request #61 from RBusarow/disable_ktlint_for_dependabot
Browse files Browse the repository at this point in the history
disable ktlint for dependabot PRs
  • Loading branch information
RBusarow authored Jul 22, 2021
2 parents eb31d90 + 1f40721 commit e4c2630
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e4c2630

Please sign in to comment.