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 408592a commit 4e74318Copy full SHA for 4e74318
.github/workflows/format.yml
@@ -0,0 +1,18 @@
1
+name: Format
2
+on:
3
+ pull_request:
4
+
5
+jobs:
6
+ format:
7
+ runs-on: ubuntu-latest
8
+ container:
9
+ image: swift:6.0.1-jammy
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+ - name: Check for formatting changes
13
+ run: |
14
+ git config --global --add safe.directory "$GITHUB_WORKSPACE"
15
+ git diff --exit-code || {
16
+ echo "::error::The formatting changed some files. Please run \`./Utilities/format.sh\` and commit the changes."
17
+ exit 1
18
+ }
0 commit comments