Skip to content

fix: calculate supported protocols - WPB-15297 #5896

fix: calculate supported protocols - WPB-15297

fix: calculate supported protocols - WPB-15297 #5896

Workflow file for this run

name: SwiftFormat
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:
SwiftFormat:
runs-on: ubuntu-24.04
if: ${{ github.event.pull_request.draft != true && github.event_name != 'merge_group' }}
container:
image: ghcr.io/nicklockwood/swiftformat:0.54.5
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 SwiftFormat
if: ${{ steps.changes.outputs.swift == 'true' }}
run: >
swiftformat --lint .
--reporter github-actions-log
--config .swiftformat