Skip to content

Commit a087bb2

Browse files
committed
fix: add Swift setup step for Linux runners
1 parent 630489b commit a087bb2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/swift-format.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Format
1+
name: Swift Format
22

33
on:
44
push:
@@ -18,6 +18,11 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v5
2020

21+
- name: Setup Swift
22+
uses: swift-actions/setup-swift@v2
23+
with:
24+
swift-version: '6.0'
25+
2126
- name: Cache swift-format
2227
id: cache-swift-format
2328
uses: actions/cache@v4
@@ -38,7 +43,7 @@ jobs:
3843
- name: Format
3944
run: swift-format format --recursive --in-place Sources Tests
4045

41-
- uses: stefanzweifel/git-auto-commit-action@v5
46+
- uses: stefanzweifel/git-auto-commit-action@v7
4247
with:
4348
commit_message: Run swift-format
4449
branch: 'main'

0 commit comments

Comments
 (0)