fix: crash when uploading link preview upload - WPB-20714 π #21772
Workflow file for this run
  
    
      This file contains hidden or 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: SwiftLint | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize, ready_for_review] | |
| merge_group: | |
| types: [checks_requested] | |
| # This is what will cancel the workflow | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| SwiftLint: | |
| runs-on: ubuntu-24.04 | |
| if: ${{ github.event.pull_request.draft != true && github.event_name != 'merge_group' }} | |
| container: | |
| image: ghcr.io/realm/swiftlint:0.59.1 | |
| steps: | |
| - uses: dorny/paths-filter@v3 | |
| id: changes | |
| with: | |
| filters: | | |
| swift: | |
| - '**/*.swift' | |
| - uses: actions/checkout@v4 | |
| if: ${{ steps.changes.outputs.swift == 'true' }} | |
| - name: GitHub Action for SwiftLint | |
| if: ${{ steps.changes.outputs.swift == 'true' }} | |
| run: | | |
| swiftlint --reporter github-actions-logging --strict --quiet |