Skip to content

Commit

Permalink
Create lint.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yuncheol-AHN authored Nov 7, 2024
1 parent 73053f7 commit fbcafff
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: auto PR swiftLint

on:
pull_request:
branches: [ develop ]
paths:
- '.github/workflows/swiftlint.yml'
- '.swiftlint.yml'
- '**/*.swift'

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: github action for swiftlint
uses: norio-nomura/action-swiftlint@master
env:
DIFF_BASE: ${{ github.base_ref }}

- name: Add PR Comment
if: ${{ success() }}
uses: mshick/add-pr-comment@v1
with:
message: |
## All File Checked ✅
| ✅ | Auto Pull Request SwiftLint Success!!!! |
|--- |---------------------------------------------- |
repo-token: ${{ secrets.ACCESS_TOKEN }}
repo-token-user-login: 'github-actions[bot]' # The user.login for temporary GitHub tokens
allow-repeats: false # This is the default

0 comments on commit fbcafff

Please sign in to comment.