v1.5.3 #621
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: Style fix and check | |
| on: | |
| pull_request: | |
| branches: ["master", "develop"] | |
| paths: | |
| - '**.swift' | |
| jobs: | |
| swift-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Lint (fix) | |
| uses: norio-nomura/[email protected] | |
| with: | |
| args: --fix | |
| - name: Lint (check) | |
| id: swiftlint-output | |
| uses: norio-nomura/[email protected] | |
| with: | |
| args: --config .swiftlint.yml | |
| - name: Saving changes | |
| uses: stefanzweifel/git-auto-commit-action@v4 | |
| with: | |
| commit_message: swiftlint --fix --format auto run |