From a22b0ab83c218dd7f7947aab7525e6a61735043f Mon Sep 17 00:00:00 2001 From: liyp Date: Sat, 12 Apr 2025 16:55:10 +0800 Subject: [PATCH] =?UTF-8?q?Release=20v1.4.3=20=E6=B5=8B=E8=AF=95=E7=94=9F?= =?UTF-8?q?=E6=88=90readme.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/AutoRelease.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.gitea/workflows/AutoRelease.yaml b/.gitea/workflows/AutoRelease.yaml index 00dc225..99ad696 100644 --- a/.gitea/workflows/AutoRelease.yaml +++ b/.gitea/workflows/AutoRelease.yaml @@ -185,3 +185,23 @@ jobs: deb http://mirrors.ustc.edu.cn/ubuntu/ noble-backports main restricted universe multiverse deb-src http://mirrors.ustc.edu.cn/ubuntu/ noble-backports main restricted universe multiverse EOF + + - name: 如果有README文件存在则删除掉 + run: | + if [ -f "README.md" ]; then + rm README.md + echo "README.md has been removed." + else + echo "README.md does not exist." + fi + + - name: 添加工程名字到README.md + run: | + REPO_NAME="ActionDemo" + if [ -f "README.md" ]; then + TEMP=$(cat README.md) + echo "$REPO_NAME" > README.md + echo "$TEMP" >> README.md + else + echo "$REPO_NAME" > README.md + fi