Skip to content

Commit

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

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

jobs:
build:

SwiftLint:
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
- uses: actions/checkout@v1
- name: GitHub Action for SwiftLint
uses: norio-nomura/[email protected]
- name: GitHub Action for SwiftLint with --strict
uses: norio-nomura/[email protected]
with:
args: --strict
- name: GitHub Action for SwiftLint (Only files changed in the PR)
uses: norio-nomura/[email protected]
env:
DIFF_BASE: ${{ github.base_ref }}
- name: GitHub Action for SwiftLint (Different working directory)
uses: norio-nomura/[email protected]
env:
WORKING_DIRECTORY: Source

0 comments on commit 825a037

Please sign in to comment.