File tree 2 files changed +7
-9
lines changed
2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -12,18 +12,16 @@ concurrency:
12
12
jobs :
13
13
swift_format :
14
14
name : swift-format
15
- runs-on : macos-13
15
+ runs-on : macos-15
16
+ permissions :
17
+ contents : write
16
18
steps :
17
19
- uses : actions/checkout@v4
18
- - name : Select Xcode 14.3
19
- run : sudo xcode-select -s /Applications/Xcode_14.3.app
20
- - name : Install swift-format
21
- run : brew install swift-format
20
+ - name : Select Xcode 16.2
21
+ run : sudo xcode-select -s /Applications/Xcode_16.2.app
22
22
- name : Format
23
23
run : make format
24
- - uses : stefanzweifel/git-auto-commit-action@v4
24
+ - uses : stefanzweifel/git-auto-commit-action@v5
25
25
with :
26
26
commit_message : Run swift-format
27
27
branch : ' main'
28
- env :
29
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ format:
64
64
-path ' */Documentation.docc' -prune -o \
65
65
-name ' *.swift' \
66
66
-not -path ' */.*' -print0 \
67
- | xargs -0 swift format --ignore-unparsable-files --in-place
67
+ | xargs -0 xcrun swift- format --ignore-unparsable-files --in-place
68
68
69
69
.PHONY : build-for-library-evolution format warm-simulator xcodebuild xcodebuild-raw
70
70
You can’t perform that action at this time.
0 commit comments