Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

add autofix (#22785)

Asuka Minatobb33335dd414
diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml
new file mode 100644
index 00000000000..5e290c5d02f
--- /dev/null
+++ b/.github/workflows/autofix.yml
@@ -0,0 +1,27 @@
+name: autofix.ci
+on:
+ workflow_call:
+ pull_request:
+ push:
+ branches: [ "main" ]
+permissions:
+ contents: read
+
+jobs:
+ autofix:
+ 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
+