CI: Partially revert b72ca8cd79e3a7b3c15a9d323576fbdd7cdbc59c #128
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Format | |
on: | |
pull_request: | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
container: | |
image: swift:6.0.1-jammy | |
steps: | |
- uses: actions/checkout@v4 | |
- run: ./Utilities/format.py | |
- name: Check for formatting changes | |
run: | | |
git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
git diff --exit-code || { | |
echo "::error::The formatting changed some files. Please run \`./Utilities/format.py\` and commit the changes." | |
exit 1 | |
} |