Skip to content

Commit 756e142

Browse files
committed
Create format.yml
1 parent 3442b0b commit 756e142

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/format.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Format
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
jobs:
8+
swift_format:
9+
name: swift format
10+
runs-on: macos-15
11+
permissions:
12+
contents: write
13+
steps:
14+
- name: Check out code
15+
uses: actions/checkout@v4
16+
17+
- name: Select Xcode 16.2
18+
run: sudo xcode-select -s /Applications/Xcode_16.2.app
19+
20+
- name: Run format.sh
21+
run: |
22+
chmod +x ./format.sh
23+
./format.sh
24+
25+
- name: Commit format
26+
uses: stefanzweifel/git-auto-commit-action@v5
27+
with:
28+
commit_message: Run format.sh
29+
branch: 'main'

0 commit comments

Comments
 (0)