Skip to content

Commit

Permalink
♻️ (CI): Linter - swiftlint - refactor the way we list changed files
Browse files Browse the repository at this point in the history
  • Loading branch information
ladislas committed Dec 11, 2023
1 parent ea0de53 commit aa8c53c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/ci-linter-swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,8 @@ jobs:
swiftlint --version
git diff --name-status origin/main \
| grep -E "^A|^M" | sed "s/^[AM]\t//g" \
| grep -E "\.swift\$$" \
git diff origin/main --name-only --diff-filter=AMCR \
|| echo "No files added nor modified!"
git diff --name-status origin/main \
| grep -E "^A|^M" | sed "s/^[AM]\t//g" \
| grep -E "\.swift\$$" \
git diff origin/main --name-only --diff-filter=AMCR \
| xargs --no-run-if-empty swiftlint lint --quiet --strict --reporter github-actions-logging

0 comments on commit aa8c53c

Please sign in to comment.