This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git
The following commit(s) were added to refs/heads/master by this push:
new 4035be57c69 [chore] add required check (#3608)
4035be57c69 is described below
commit 4035be57c69ad3daa009fbf4576795f989190bde
Author: Mingyu Chen (Rayner) <[email protected]>
AuthorDate: Tue May 5 15:54:29 2026 -0700
[chore] add required check (#3608)
---
.asf.yaml | 3 +++
.github/workflows/docs-next-build.yml | 30 ++++++++++++++++++++++--------
2 files changed, 25 insertions(+), 8 deletions(-)
diff --git a/.asf.yaml b/.asf.yaml
index 723aed9e2c4..5dbe6541933 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -50,6 +50,9 @@ github:
strict: false
contexts:
- Build Check
+ - check-md-links
+ - check-file-sizes
+ - Build docs-next
features:
issues: true
diff --git a/.github/workflows/docs-next-build.yml
b/.github/workflows/docs-next-build.yml
index 0cf35a84c29..cadf880d3eb 100644
--- a/.github/workflows/docs-next-build.yml
+++ b/.github/workflows/docs-next-build.yml
@@ -20,13 +20,7 @@ name: docs-next build check
on:
pull_request:
- paths:
- - 'docs-next/**'
- - 'sidebars-next.ts'
- - 'next_versions.json'
- - 'i18n/zh-CN/docusaurus-plugin-content-docs-next/**'
- - 'docusaurus.config.js'
- - '.github/workflows/docs-next-build.yml'
+ types: [opened, synchronize, reopened]
concurrency:
group: ${{ github.ref }} (docs-next build)
@@ -41,19 +35,38 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- fetch-depth: 1
+ fetch-depth: 0
+
+ - name: Detect relevant changes
+ id: changes
+ run: |
+ set -e
+ BASE_SHA="${{ github.event.pull_request.base.sha }}"
+ HEAD_SHA="${{ github.event.pull_request.head.sha }}"
+ CHANGED=$(git diff --name-only "$BASE_SHA" "$HEAD_SHA")
+ echo "Changed files:"
+ echo "$CHANGED"
+ if echo "$CHANGED" | grep -E
'^(docs-next/|sidebars-next\.ts$|next_versions\.json$|i18n/zh-CN/docusaurus-plugin-content-docs-next/|docusaurus\.config\.js$|\.github/workflows/docs-next-build\.yml$)'
>/dev/null; then
+ echo "relevant=true" >> "$GITHUB_OUTPUT"
+ else
+ echo "relevant=false" >> "$GITHUB_OUTPUT"
+ echo "No docs-next-related changes detected; skipping
build."
+ fi
- name: Use Node.js
+ if: steps.changes.outputs.relevant == 'true'
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
+ if: steps.changes.outputs.relevant == 'true'
run: |
npm install -g yarn
yarn install --frozen-lockfile || yarn install
- name: Build (current only, EN + zh-CN)
+ if: steps.changes.outputs.relevant == 'true'
env:
DOCS_VERSIONS: current
run: |
@@ -61,6 +74,7 @@ jobs:
yarn docusaurus build --locale en --locale zh-CN
- name: Verify docs-next artifacts
+ if: steps.changes.outputs.relevant == 'true'
run: |
set -e
test -d build/docs-next/dev
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]