diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 6b794ce..3d03660 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -135,9 +135,9 @@ jobs: run: | set -xe shopt -s nullglob - NAME="$(head -n 1 update_info.txt)" - TAGNAME="$(head -n 1 update_info.txt)" - NOTES_MAIN="$(tail -n +3 update_info.txt)" + NAME="$(sed 's/\r$//g' <(head -n 1 update_info.txt))" + TAGNAME="$(sed 's/\r$//g' <(head -n 1 update_info.txt))" + NOTES_MAIN="$(sed 's/\r$//g' <(tail -n +3 update_info.txt))" NOTES_TAIL="\`\`\`本release通过GitHub Actions自动构建\`\`\`" NOTES="$NOTES_MAIN

$NOTES_TAIL" gh release create "$TAGNAME" --target "main" --title "$NAME" --notes "$NOTES" artifacts/* @@ -149,9 +149,9 @@ jobs: run: | set -xe shopt -s nullglob - NAME="$(head -n 1 update_info.txt)" - TAGNAME="$(head -n 1 update_info.txt)" - NOTES_MAIN="$(tail -n +3 update_info.txt)" + NAME="$(sed 's/\r$//g' <(head -n 1 update_info.txt))" + TAGNAME="$(sed 's/\r$//g' <(head -n 1 update_info.txt))" + NOTES_MAIN="$(sed 's/\r$//g' <(tail -n +3 update_info.txt))" NOTES_TAIL="\`\`\`本release通过GitHub Actions自动构建\`\`\`" NOTES="$NOTES_MAIN

$NOTES_TAIL" gh release delete "$TAGNAME" --yes