Skip to content

Commit

Permalink
fix: 转义commit信息中的特殊字符
Browse files Browse the repository at this point in the history
  • Loading branch information
VillagerTom committed Jul 24, 2024
1 parent 1f5396e commit b543c42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: 获取最后一次提交
id: get-last-commit
run: |
last_commit=$(git log -1 --pretty="%h %s" --first-parent)
last_commit=$(git log -1 --pretty="%h %s" --first-parent | sed 's/_/\\_/g; s/*/\\*/g; s/~/\\~/g')
echo "last_commit=$last_commit" >> $GITHUB_OUTPUT
- name: 获取最后一个tag
Expand Down

0 comments on commit b543c42

Please sign in to comment.