Skip to content

Commit

Permalink
ci: 调整输出格式避免错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Anselyuki committed Nov 1, 2023
1 parent 105146c commit 5ad4f13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ jobs:
PREVIOUS_TAG=$(git tag | tail -n2 | head -n1)
echo "> Automatically generated by the GitHub Action" > commit.log
echo "" >> commit.log
git log $PREVIOUS_TAG...$LATEST_TAG --pretty=format:"%h -%d %s (%ci)" -5 >> commit.log
git log $PREVIOUS_TAG...$LATEST_TAG --pretty=format:"%h - %s" -5 >> commit.log
echo "===== Commit file ====="
cat commit.log
echo "====== files end ======"
echo "COMMIT_MESSAGE=$(cat commit.log | sed 's/[:()]/_/g')" >> $GITHUB_ENV
echo "COMMIT_MESSAGE=$(cat commit.log)" >> $GITHUB_ENV
- name: Rust Cache
uses: Swatinem/[email protected]
Expand Down

0 comments on commit 5ad4f13

Please sign in to comment.