Skip to content

Commit 8bd578d

Browse files
Update lint action
1 parent 7482722 commit 8bd578d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/lint.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ jobs:
2525
swiftlint-${{ runner.os }}-
2626
- name: Install SwiftLint
2727
if: steps.cache.outputs.cache-hit != 'true'
28-
run: brew install swiftlint
28+
run: |
29+
if ! command -v swiftlint &> /dev/null; then
30+
brew install swiftlint
31+
fi
2932
- name: Link SwiftLint
30-
if: steps.cache.outputs.cache-hit == 'true'
3133
run: brew link swiftlint --force
3234
- name: Run SwiftLint
3335
run: swiftlint --strict

0 commit comments

Comments
 (0)