Skip to content

Commit e491257

Browse files
author
Guilherme Souza
committed
Add format workflow
1 parent 13e11b1 commit e491257

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/format.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Format
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
swift_format:
10+
name: swift-format
11+
runs-on: macOS-11
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Tap
15+
run: brew tap pointfreeco/formulae
16+
- name: Install
17+
run: brew install Formulae/[email protected]
18+
- name: Format
19+
run: swift format -i -r --ignore-unparsable-files .
20+
- uses: stefanzweifel/git-auto-commit-action@v4
21+
with:
22+
commit_message: Run swift-format
23+
branch: 'master'
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)