This commit is contained in:
parent
d5c59fda81
commit
dab41e864d
16
.github/workflows/CCC.yml
vendored
16
.github/workflows/CCC.yml
vendored
@ -121,14 +121,17 @@ jobs:
|
||||
# 更新 README.md 文件
|
||||
- name: ✏️ 更新 README.md 文件
|
||||
env:
|
||||
LATEST_VERSION: "R$(date +'%y.%m.%d')-$(date +'%H%M')"
|
||||
ARCHITECTURE: "x86_64"
|
||||
FILE_SIZE: "1024MB" # 可以根据实际情况动态获取
|
||||
RELEASE_DATE: "$(date +'%Y-%m-%d')"
|
||||
BUILD_STATUS: "成功"
|
||||
FIRMWARE_TYPE: "稳定版"
|
||||
OPENWRT_VERSION: "${{ env.FULL_KERNEL_VERSION }}"
|
||||
run: |
|
||||
# 定义需要替换的变量
|
||||
LATEST_VERSION="R$(date +'%y.%m.%d')-$(date +'%H%M')"
|
||||
ARCHITECTURE="x86_64"
|
||||
FILE_SIZE="1024MB" # 可以根据实际情况动态获取
|
||||
RELEASE_DATE="$(date +'%Y-%m-%d')"
|
||||
BUILD_STATUS="成功"
|
||||
FIRMWARE_TYPE="稳定版"
|
||||
OPENWRT_VERSION="${OPENWRT_VERSION}"
|
||||
|
||||
# 更新 README.md 文件中的内容
|
||||
sed -i "s/最新版本-[^\-]*/最新版本-${LATEST_VERSION}/" README.md
|
||||
sed -i "s/适用架构-[^\-]*/适用架构-${ARCHITECTURE}/" README.md
|
||||
@ -137,6 +140,7 @@ jobs:
|
||||
sed -i "s/构建状态-[^\-]*/构建状态-${BUILD_STATUS}/" README.md
|
||||
sed -i "s/固件类型-[^\-]*/固件类型-${FIRMWARE_TYPE}/" README.md
|
||||
sed -i "s/OpenWrt版本-[^\-]*/OpenWrt版本-${OPENWRT_VERSION}/" README.md
|
||||
|
||||
# 显示更新后的 README.md 内容
|
||||
cat README.md
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user