Skip to content

Commit

Permalink
除去\r
Browse files Browse the repository at this point in the history
  • Loading branch information
DLmaster361 committed Nov 1, 2024
1 parent 98cb84a commit e5b1aa9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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<br><br>$NOTES_TAIL"
gh release create "$TAGNAME" --target "main" --title "$NAME" --notes "$NOTES" artifacts/*
Expand All @@ -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<br><br>$NOTES_TAIL"
gh release delete "$TAGNAME" --yes
Expand Down

0 comments on commit e5b1aa9

Please sign in to comment.