From ea2df80eb53fc9fc40648d48136dd4e53c829c12 Mon Sep 17 00:00:00 2001 From: MarSeventh <1193267292@qq.com> Date: Tue, 28 Jul 2026 21:22:55 +0800 Subject: [PATCH] chore: organize automation assets --- .github/{BREAKING_UPDATES.md => breaking-updates/README.md} | 4 ++-- .github/{ => breaking-updates}/breaking-updates.json | 0 .../{ => breaking-updates}/scripts/breaking-update-guard.sh | 2 +- .github/workflows/sync-upstream.yml | 4 ++-- README.md | 2 +- README_zh.md | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) rename .github/{BREAKING_UPDATES.md => breaking-updates/README.md} (93%) rename .github/{ => breaking-updates}/breaking-updates.json (100%) rename .github/{ => breaking-updates}/scripts/breaking-update-guard.sh (99%) diff --git a/.github/BREAKING_UPDATES.md b/.github/breaking-updates/README.md similarity index 93% rename from .github/BREAKING_UPDATES.md rename to .github/breaking-updates/README.md index a2ed1d10..b7c6fdf7 100644 --- a/.github/BREAKING_UPDATES.md +++ b/.github/breaking-updates/README.md @@ -1,8 +1,8 @@ # Breaking update guard / 破坏性更新保护机制 -The scheduled upstream synchronization reads `.github/breaking-updates.json` before applying changes. If an enabled update has not been applied to a fork, automatic synchronization is paused and a bilingual issue is created in that fork. +The scheduled upstream synchronization reads `.github/breaking-updates/breaking-updates.json` before applying changes. If an enabled update has not been applied to a fork, automatic synchronization is paused and a bilingual issue is created in that fork. -定时上游同步会在应用变更前读取 `.github/breaking-updates.json`。如果某项已启用的更新尚未包含在用户 Fork 中,自动同步会暂停,并在该 Fork 中创建中英双语 Issue。 +定时上游同步会在应用变更前读取 `.github/breaking-updates/breaking-updates.json`。如果某项已启用的更新尚未包含在用户 Fork 中,自动同步会暂停,并在该 Fork 中创建中英双语 Issue。 ## Initial rollout / 首次上线 diff --git a/.github/breaking-updates.json b/.github/breaking-updates/breaking-updates.json similarity index 100% rename from .github/breaking-updates.json rename to .github/breaking-updates/breaking-updates.json diff --git a/.github/scripts/breaking-update-guard.sh b/.github/breaking-updates/scripts/breaking-update-guard.sh similarity index 99% rename from .github/scripts/breaking-update-guard.sh rename to .github/breaking-updates/scripts/breaking-update-guard.sh index 5f81dfd7..ae9b1894 100644 --- a/.github/scripts/breaking-update-guard.sh +++ b/.github/breaking-updates/scripts/breaking-update-guard.sh @@ -5,7 +5,7 @@ set -Eeuo pipefail MODE="${1:-check}" UPSTREAM_REPO="${UPSTREAM_REPO:-MarSeventh/CloudFlare-ImgBed}" UPSTREAM_BRANCH="${UPSTREAM_BRANCH:-main}" -MANIFEST_PATH="${BREAKING_UPDATE_MANIFEST:-.github/breaking-updates.json}" +MANIFEST_PATH="${BREAKING_UPDATE_MANIFEST:-.github/breaking-updates/breaking-updates.json}" PENDING_FILE="${RUNNER_TEMP:-/tmp}/cloudflare-imgbed-pending-breaking-updates.txt" ISSUE_TITLE_PREFIX="CloudFlare-ImgBed Update" diff --git a/.github/workflows/sync-upstream.yml b/.github/workflows/sync-upstream.yml index 4c8d8123..643ee13b 100644 --- a/.github/workflows/sync-upstream.yml +++ b/.github/workflows/sync-upstream.yml @@ -40,7 +40,7 @@ jobs: UPSTREAM_REPO: MarSeventh/CloudFlare-ImgBed UPSTREAM_BRANCH: main ALLOW_BREAKING_UPDATE: ${{ github.event_name == 'workflow_dispatch' && inputs.confirm_breaking_update == true }} - run: bash .github/scripts/breaking-update-guard.sh check + run: bash .github/breaking-updates/scripts/breaking-update-guard.sh check - name: Sync upstream changes id: sync @@ -57,7 +57,7 @@ jobs: if: steps.sync.outcome == 'success' env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: bash .github/scripts/breaking-update-guard.sh complete + run: bash .github/breaking-updates/scripts/breaking-update-guard.sh complete - name: Trigger Worker deploy if: steps.sync.outcome == 'success' diff --git a/README.md b/README.md index dadd7fd9..608ef9e0 100644 --- a/README.md +++ b/README.md @@ -171,7 +171,7 @@ Thank you to everyone who has contributed code, documentation, ideas, and feedba - CloudFlare-ImgBed and Sanyue-ImgHub Star History Chart + Star-History diff --git a/README_zh.md b/README_zh.md index 246f729c..6ed78db2 100644 --- a/README_zh.md +++ b/README_zh.md @@ -171,7 +171,7 @@ CloudFlare ImgBed 是支持 Docker 与 Serverless 部署的自建图床和文件 - CloudFlare-ImgBed 和 Sanyue-ImgHub Star 趋势图 + Star-History