We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13e11b1 commit e491257Copy full SHA for e491257
.github/workflows/format.yml
@@ -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