Create lint.yml

This commit is contained in:
aiden vigue 2021-06-10 08:58:41 -07:00 committed by GitHub
parent d0614caca2
commit 45cff226e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 30 additions and 0 deletions

30
.github/workflows/lint.yml vendored Normal file
View File

@ -0,0 +1,30 @@
name: "Lint 🧹"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: "Lint 🧹"
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Run SwiftLint
run: swiftlint autocorrect
- name: Commit changes
uses: EndBug/add-and-commit@v7 # You can change this to use a specific version
with:
add: '.'
author_name: jellyfin-bot
author_email: team@jellyfin.org
default_author: github_actor
message: 'Auto lint'
pull_strategy: '--no-rebase'
push: true