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 b9d4dd80944 [chore](ci) reduce redundant website deploys (#4197)
b9d4dd80944 is described below
commit b9d4dd80944c63e130ca145da41fac478c91f5e8
Author: Dongyang Li <[email protected]>
AuthorDate: Tue Oct 13 01:02:16 2026 +0800
[chore](ci) reduce redundant website deploys (#4197)
## What
- Deploy immediately after a push to `master`.
- Reduce the scheduled fallback from every two hours to once per day at
01:00 UTC.
- Keep the daily run so dynamic data such as the GitHub star count is
refreshed even when the repository SHA is unchanged.
- Update the README deployment table to match the actual trigger policy.
## Why
The ASF GitHub Actions dashboard attributed 14.84% of the Doris project
usage in the last seven days to `Cron Deploy`: about 2,536 runner
minutes (42.3 hours).
During the latest seven-day window, this workflow created 83 scheduled
runs while `master` received 8 commits. Most runs therefore rebuilt and
redeployed an unchanged site. A SHA-only skip is not appropriate because
the build also refreshes dynamic data through
`scripts/update_github_info.js`.
With push deployment plus one daily fallback, the same window would have
needed roughly 15 runs instead of 83, reducing this workflow fan-out by
about 82% while making content changes visible sooner.
## Safety
- Push deployment is limited to the protected `master` branch.
- Pull requests do not receive deployment permissions or production
secrets.
- The existing concurrency group continues to serialize push and
scheduled deployments.
- Upload retry, OSS endpoint, permissions, checkout depth, and
deployment behavior are unchanged.
## Validation
- `git diff --check`
- YAML parse succeeded.
- `actionlint` reports the same pre-existing warnings as `master` and no
new findings from this change.
## Self-review
- Goal: reduce redundant runner usage without delaying site updates. The
triggers directly implement that policy.
- Scope: limited to the workflow trigger/comment and its README entry.
- Documentation structure, routes, localized content, UI, and build
scripts are unaffected.
- No additional correctness, usability, accessibility, SEO, or
maintainability issue was found in the changed scope.
---
.github/workflows/cron-deploy-website.yml | 10 ++++++++--
README.md | 2 +-
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/cron-deploy-website.yml
b/.github/workflows/cron-deploy-website.yml
index 2f78e9a62e0..c82af95ef81 100644
--- a/.github/workflows/cron-deploy-website.yml
+++ b/.github/workflows/cron-deploy-website.yml
@@ -1,11 +1,17 @@
name: Cron Deploy
on:
+ push:
+ branches:
+ - master
schedule:
- - cron: '0 */2 * * *' # Runs every 2 hours.
+ # Refresh dynamic data, such as the GitHub star count, and recover from
+ # a missed push deployment without rebuilding an unchanged site 12
+ # times per day.
+ - cron: '0 1 * * *' # Daily at 01:00 UTC.
permissions: write-all
# One deploy at a time. A run whose OSS upload crawls (the 2026-09-21 12:05
-# run spent two hours on it) must not overlap the next cron trigger: both
+# run spent two hours on it) must not overlap a newer push or cron trigger:
both
# would push the same objects through the same slow pipe and race for the
# bucket's .actioninfo manifest. Queue the newer run instead of cancelling
# the running one - killing it mid-upload discards the manifest it writes at
diff --git a/README.md b/README.md
index 3be719e7d83..14b4483aade 100644
--- a/README.md
+++ b/README.md
@@ -140,6 +140,6 @@ The site is deployed via GitHub Actions:
| Workflow | Trigger | Description |
|----------|---------|-------------|
-| `cron-deploy-website.yml` | Daily at 01:00 AM | Syncs from Doris master
branch and deploys |
+| `cron-deploy-website.yml` | Push to `master`; daily at 01:00 UTC | Builds
and deploys the site; the daily run refreshes dynamic data and provides a
fallback |
| `manual-deploy-website.yml` | Manual | Deploy from a specified branch |
| `build-check.yml` | On PR | Validates the build passes (incrementally by
detected version) |
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]