This is an automated email from the ASF dual-hosted git repository.
xushiyan pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/hudi.git
The following commit(s) were added to refs/heads/asf-site by this push:
new b28810d239b5 fix(ci): improve asf-site workflow reliability (#14216)
b28810d239b5 is described below
commit b28810d239b5e86733e15f2e6adcd650ea5aba1f
Author: Shiyan Xu <[email protected]>
AuthorDate: Wed Nov 5 16:21:17 2025 -0800
fix(ci): improve asf-site workflow reliability (#14216)
- Remove problematic `filter: 'tree:0'` checkout option
- Increase PR fetch-depth from 50 to 100 commits
- Guard absolute path check with PR condition to fix push failures
- Use consistent `ci-build` branch name throughout workflow
---
.github/workflows/asf-site.ci.yml | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/asf-site.ci.yml
b/.github/workflows/asf-site.ci.yml
index ba37c89c6f23..a08cc4847c78 100644
--- a/.github/workflows/asf-site.ci.yml
+++ b/.github/workflows/asf-site.ci.yml
@@ -21,12 +21,11 @@ jobs:
- uses: actions/checkout@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
- # Use shallow clone with only 50 commits of history
- fetch-depth: 50
- # Don't fetch tags (this can save significant time)
+ # For PR: need enough commits for diff (100 should cover most PRs)
+ # For push: only need latest commit
+ fetch-depth: ${{ github.event_name == 'pull_request' && 100 || 1 }}
+ # Skip tags - this saves significant time
fetch-tags: false
- # Only fetch the PR branch and base branch
- filter: 'tree:0'
- name: Check for files in content/
if: github.event_name == 'pull_request'
run: |
@@ -43,6 +42,7 @@ jobs:
echo "✅ No files under content/ directory."
fi
- name: Check for absolute /docs/ paths in markdown links
+ if: github.event_name == 'pull_request'
run: |
echo "🔍 Checking for absolute /docs/ paths in markdown links..."
@@ -111,7 +111,7 @@ jobs:
run: |
git config --global user.name "CI BOT"
git config --global user.email "[email protected]"
- git checkout -b pr
+ git checkout -b ci-build
git remote add hudi https://${{ secrets.GITHUB_TOKEN
}}@github.com/apache/hudi.git
git pull --rebase hudi asf-site
- uses: actions/setup-node@v6
@@ -131,4 +131,4 @@ jobs:
cp -R ${{ env.DOCS_ROOT }}/build content
git add -A
git commit -am "GitHub Actions build asf-site"
- git push hudi pr:asf-site
+ git push hudi ci-build:asf-site