fix: move database service call inside session context in workflow dr… #1
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: autofix.ci | |
| on: | |
| workflow_call: | |
| pull_request: | |
| push: | |
| branches: [ "main" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| autofix: | |
| if: github.repository == 'langgenius/dify' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # Use uv to ensure we have the same ruff version in CI and locally. | |
| - uses: astral-sh/setup-uv@7edac99f961f18b581bbd960d59d049f04c0002f | |
| - run: | | |
| cd api | |
| uv sync --dev | |
| # Fix lint errors | |
| uv run ruff check --fix-only . | |
| # Format code | |
| uv run ruff format . | |
| - uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27 | |