fix: 修复readme的Action操作

This commit is contained in:
spiritlhl
2026-04-01 04:35:57 +00:00
parent 7a4885346b
commit 4e868a384a
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -40,7 +40,8 @@ jobs:
sed -i 's|security.*Enable/Disable security test (default true)|security Enable/Disable security test (default false)|g' README_EN.md sed -i 's|security.*Enable/Disable security test (default true)|security Enable/Disable security test (default false)|g' README_EN.md
echo "已更新 README_EN.md" echo "已更新 README_EN.md"
fi fi
git add README.md README_EN.md git add README.md
[ -f "README_EN.md" ] && git add README_EN.md || true
git commit -m "Auto update README files" || echo "No changes to commit" git commit -m "Auto update README files" || echo "No changes to commit"
git push origin ${{ github.ref_name }} git push origin ${{ github.ref_name }}
else else
+2 -1
View File
@@ -32,8 +32,9 @@ jobs:
- name: Copy repository files - name: Copy repository files
run: | run: |
cp goecs.sh temp_repo/ cp goecs.sh temp_repo/
cp README_EN.md temp_repo/
cp README.md temp_repo/ cp README.md temp_repo/
[ -f "README_EN.md" ] && cp README_EN.md temp_repo/ || true
[ -f "README_ZH.md" ] && cp README_ZH.md temp_repo/ || true
cp LICENSE temp_repo/ cp LICENSE temp_repo/
- name: Download release assets - name: Download release assets