Catch and log all exceptions during docker processing. (#104) #125
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 code | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| paths-ignore: | |
| - .github/** | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref_name }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: write | |
| actions: write | |
| jobs: | |
| format: | |
| name: Format and lint with ruff | |
| runs-on: arc-runners-small | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| repository: ${{ github.event.pull_request.head.repo.full_name }} | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| - uses: ./.github/workflows/actions/prepare | |
| - run: poetry run ruff check --fix --unsafe-fixes --preview --exit-zero . | |
| - run: poetry run ruff format . | |
| - name: Commit changes | |
| uses: EndBug/add-and-commit@v9 | |
| with: | |
| fetch: false | |
| default_author: github_actions | |
| message: 'Auto format' | |
| add: '.' |