[Player] Unified caching (3/X): Better URL handling in GRDB #733
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Lint Checks | |
on: | |
workflow_call: | |
pull_request: | |
branches: | |
- '**' | |
merge_group: | |
types: [checks_requested] | |
jobs: | |
run-swiftlint: | |
name: Run SwiftLint | |
runs-on: macos-14 | |
permissions: | |
contents: read | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get changed directories | |
id: changed-files | |
uses: tj-actions/changed-files@v44 | |
with: | |
files: | | |
**/*.swift | |
- name: Run swiftlint on changed files | |
run: | | |
files="${{ steps.changed-files.outputs.all_changed_files }}" | |
echo "Changed files: $files" | |
if [[ -z $files ]]; then | |
echo "No swift files were changed. Linter won't run" | |
else | |
./bin/swiftlint/run-swiftlint.sh $files | |
fi |