1028.4
All checks were successful
获取完整内核版本 / clone_with_proxy (push) Successful in 1m4s

This commit is contained in:
298977887 2024-10-28 18:50:32 +08:00
parent 8ba4b7a604
commit 38c9b5148c

View File

@ -137,11 +137,11 @@ jobs:
LUCI_BRANCH=$(git rev-parse --abbrev-ref HEAD)
LUCI_COMMIT=$(git rev-parse --short HEAD)
# 格式化 LuCI 版本信息,将空格替换为下划线,并构建为目标格式
# 格式化 LuCI 版本信息,适应 URL 编码的格式
LUCI_VERSION="LuCI_${LUCI_BRANCH}_branch_(git--${LUCI_COMMIT})"
echo "LUCI_VERSION=$LUCI_VERSION" >> $GITHUB_ENV
echo "LuCI 版本信息:$LUCI_VERSION"
# 输出示例LuCI_openwrt-23.05_branch_(git--4f71ba2)
LUCI_VERSION_ENCODED=$(echo $LUCI_VERSION | sed 's/ /_/g; s/(/%28/g; s/)/%29/g; s/-/%2D/g')
echo "LUCI_VERSION_ENCODED=$LUCI_VERSION_ENCODED" >> $GITHUB_ENV
echo "LuCI 版本信息:$LUCI_VERSION_ENCODED"
# 更新 README.md 文件
- name: ✏️ 更新 README.md 文件
@ -157,11 +157,11 @@ jobs:
KERNEL_VERSION="${FULL_KERNEL_VERSION}"
DISTRIB_REVISION="${{ env.distrib_revision }}"
#LuCI 版本
LUCI_VERSION="${{ env.LUCI_VERSION }}"
LUCI_VERSION="${LUCI_VERSION_ENCODED}"
NEW_CONTENT="<!--action-tag-start-->\n\n"
NEW_CONTENT+="![Latest Version](https://img.shields.io/badge/固件版本-${DISTRIB_REVISION}-brightgreen)\n"
NEW_CONTENT+="![Based on OpenWrt](https://img.shields.io/badge/内核版本-${OPENWRT_VERSION}-00bfff)\n"
NEW_CONTENT+="![Based on OpenWrt](https://img.shields.io/badge/内核版本-${KERNEL_VERSION}-00bfff)\n"
NEW_CONTENT+="![LuCI Version](https://img.shields.io/badge/LuCI-${LUCI_VERSION}-blueviolet)\n"
NEW_CONTENT+="![Architecture](https://img.shields.io/badge/适用架构-${ARCHITECTURE}-ff69b4)\n"
NEW_CONTENT+="![File Size](https://img.shields.io/badge/文件大小-${FILE_SIZE}-orange)\n"