Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/NotePush_Iss&Pr_Scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ on:

env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true

jobs:
summary-report:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/NotePush_Issues_Real-time.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true

jobs:
issue-notification:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/NotePush_PullRequest_Real-time.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
pull_request:
types: [opened, closed, reopened]

env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true

jobs:
pr-notification:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ai-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
required: false
type: string

env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true

jobs:
review:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/deepseek-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ concurrency:
group: deepseek-review-${{ github.event.pull_request.number || inputs.pr_number }}
cancel-in-progress: true

env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true

jobs:
review:
if: |
Expand Down
33 changes: 18 additions & 15 deletions .github/workflows/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,16 @@ on:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.deploy_alpha || 'false' }}-${{ inputs.deploy_beta || 'false' }}
cancel-in-progress: true


env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true

jobs:
meta:
runs-on: ubuntu-latest
if: "github.event_name == 'workflow_dispatch' || startsWith(github.ref, 'refs/tags/') || !contains(github.event.head_commit.message, '[deploy-sync]')"
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 0
- id: set_tag
Expand Down Expand Up @@ -213,12 +215,12 @@ jobs:
needs: meta
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: "3.10"

Expand All @@ -231,7 +233,7 @@ jobs:
python -m pip install maafw=="$TARGET_VERSION"

- name: Restore Assets (Clone from Resource Repo)
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
repository: sunyink/MFABD2-Assets
ref: master
Expand Down Expand Up @@ -276,7 +278,7 @@ jobs:
# -------------------------------------------------------------------
- os: win
arch: x86_64
runner: windows-latest
runner: windows-2025-vs2026
mfa_os: "win"
mfa_arch: "x64"
# Windows 专用配置
Expand All @@ -292,7 +294,7 @@ jobs:
# -------------------------------------------------------------------
- os: win
arch: aarch64
runner: windows-latest
runner: windows-2025-vs2026
mfa_os: "win"
mfa_arch: "arm64"
# Windows 专用配置 (切到 3.11)
Expand Down Expand Up @@ -360,16 +362,17 @@ jobs:
is_android: true

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
submodules: true

# 设置构建环境的 Python (用于运行 install.py 等脚本)
# 这里的版本不影响 Windows 打包进去的嵌入式 Python 版本
- name: Set up Build Environment
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: "3.10"
cache: "" # 禁用缓存,避免 macOS 上反序列化失败警告

# 显式指定 bash,确保在 Windows 上也能用 cp/rm/mkdir 等命令
- name: Install Build Dependencies
Expand Down Expand Up @@ -409,7 +412,7 @@ jobs:
extract: true

- name: Restore Assets (Clone from Resource Repo)
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
repository: sunyink/MFABD2-Assets
ref: master
Expand Down Expand Up @@ -777,7 +780,7 @@ jobs:
shutil.rmtree(p)
"

- uses: actions/upload-artifact@v5
- uses: actions/upload-artifact@v6
with:
name: MFABD2-${{ needs.meta.outputs.tag }}-${{ matrix.os }}-${{ matrix.is_android && 'arm64' || matrix.arch }}
path: "install"
Expand All @@ -790,12 +793,12 @@ jobs:
release_body: ${{ steps.set_release_body.outputs.content }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: "3.x"

Expand All @@ -819,7 +822,7 @@ jobs:
# 上传 CHANGES.md 到构建物
# =======================================================
- name: Upload Changelog Artifact
uses: actions/upload-artifact@v5
uses: actions/upload-artifact@v6
with:
name: CHANGES
path: CHANGES.md
Expand All @@ -842,7 +845,7 @@ jobs:
id: get_time
run: echo "time=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT

- uses: actions/download-artifact@v5
- uses: actions/download-artifact@v7
with:
path: artifacts

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/sync_schema_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ permissions:
contents: write
pull-requests: write # 必须:允许创建 PR

env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true

jobs:
check-repository:
runs-on: ubuntu-latest
Expand Down
24 changes: 12 additions & 12 deletions scripts/changelog_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,17 +452,7 @@ def add_historical_versions(current_changelog: str, current_tag: str) -> str:
print(f"处理历史版本: {tag} (发布时间: {published_at})")
print(f"内容长度: {len(body)} 字符")

# 智能标记分析(根据配置决定是否启用)
markers = ""
if HISTORY_CONFIG['enable_version_highlights']:
markers = analyze_version_highlights(release)
marker_display = f" {markers}" if markers else ""
print(f"版本标记: '{markers}'")
else:
marker_display = ""
print("版本标记: 已禁用")

# 截断处理
# 截断处理(必须先于标记分析,防止历史区块中的 ⚠️/💡 污染检测结果)
truncated_body = manager.truncate_release_body(body)
print(f"截断后长度: {len(truncated_body)} 字符")

Expand All @@ -476,7 +466,17 @@ def add_historical_versions(current_changelog: str, current_tag: str) -> str:
print(f"⚠️ 跳过版本 {tag}: Release Notes 与已收录版本内容完全相同(hash={body_hash[:8]}),属异常重复发布")
continue
seen_body_hashes.add(body_hash)


# 智能标记分析(在截断后的正文上分析,排除历史区块干扰)
markers = ""
if HISTORY_CONFIG['enable_version_highlights']:
markers = analyze_version_highlights({'body': truncated_body})
marker_display = f" {markers}" if markers else ""
print(f"版本标记: '{markers}'")
else:
marker_display = ""
print("版本标记: 已禁用")

historical_section += f"""<details>
<summary>{tag} ({published_at}){marker_display}</summary>

Expand Down
Loading