jellyflood/.github/workflows/lint.yml

31 lines
660 B
YAML

name: "Lint 🧹"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: "Lint 🧹"
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run SwiftLint
run: swiftlint --fix
- 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