Fix SwiftLint action (#434)

* Update SwiftLint action
This commit is contained in:
ezraberch 2021-07-28 09:56:25 -04:00 committed by GitHub
parent 9a568ab9cf
commit a8c6eae94e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -12,7 +12,13 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
# Fetch current versions of files
- name: Fetch base ref
run: |
git fetch --prune --no-tags --depth=1 origin +refs/heads/${{ github.base_ref }}:refs/heads/${{ github.base_ref }}
# Diff pull request to current files, then SwiftLint changed files
- name: GitHub Action for SwiftLint
uses: norio-nomura/action-swiftlint@3.1.0
uses: ezraberch/action-swiftlint@3.2.3
env:
DIFF_BASE: ${{ github.base_ref }}
DIFF_HEAD: HEAD