Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aigem authored Dec 27, 2024
1 parent 4905fae commit c720de3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,12 @@ jobs:
# 只检查 README.md 文件
if [ -f "README.md" ] && ! grep -q "开源强化版bolt.new" "README.md"; then
# 创建临时文件
# 创建临时文件并确保正确的顺序
echo "$NOTICE" > temp_readme
cat README.md >> temp_readme
mv temp_readme README.md
# 使用 cat 直接覆盖原文件
cat temp_readme > README.md
rm temp_readme
echo "Updated README.md"
git add README.md
Expand Down

0 comments on commit c720de3

Please sign in to comment.