-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (28 loc) · 890 Bytes
/
swiftlint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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