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.

fix(ci): always report required style checks (#40684)

yyh1f96da5e6d78
diff --git a/.github/workflows/main-ci.yml b/.github/workflows/main-ci.yml
index 72b1f496c71..94f1081247d 100644
--- a/.github/workflows/main-ci.yml
+++ b/.github/workflows/main-ci.yml
@@ -394,10 +394,10 @@ jobs:
style-check:
name: Style Check
needs: pre_job
- if: needs.pre_job.outputs.should_skip != 'true'
uses: ./.github/workflows/style.yml
with:
base-rev: ${{ github.event.pull_request.base.sha || github.event.merge_group.base_sha }}
+ skip-checks: ${{ needs.pre_job.outputs.should_skip == 'true' }}
vdb-tests-run:
name: Run VDB Tests
diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml
index 5507baaba7b..c0a8fe7ca3c 100644
--- a/.github/workflows/style.yml
+++ b/.github/workflows/style.yml
@@ -6,6 +6,11 @@ on:
base-rev:
required: true
type: string
+ skip-checks:
+ description: Create the required check runs without repeating previously successful work.
+ required: false
+ type: boolean
+ default: false
permissions:
checks: write
@@ -15,6 +20,7 @@ permissions:
jobs:
python-style:
name: Python Style
+ if: ${{ !inputs.skip-checks }}
runs-on: depot-ubuntu-24.04
steps:
@@ -79,6 +85,7 @@ jobs:
web-style:
name: Web Style
+ if: ${{ !inputs.skip-checks }}
runs-on: depot-ubuntu-24.04
defaults:
run:
@@ -138,6 +145,7 @@ jobs:
ts-common-style:
name: TS Common
+ if: ${{ !inputs.skip-checks }}
runs-on: depot-ubuntu-24.04-4
permissions:
checks: write
@@ -181,6 +189,7 @@ jobs:
superlinter:
name: SuperLinter
+ if: ${{ !inputs.skip-checks }}
runs-on: depot-ubuntu-24.04
steps: