ci: support multiline tag messages in publish workflow

Use heredoc-style GITHUB_OUTPUT to avoid invalid format errors when the release changelog contains newlines.
This commit is contained in:
cxfksword
2026-10-08 14:37:40 +08:00
parent dfc4f7efcd
commit faf162fb63

View File

@@ -45,7 +45,11 @@ jobs:
VERSION="$VERSION.0"
CHANGE_LOG=$(git tag -l '--format=%(contents)' ${{ github.ref_name }})
echo "VERSION=${VERSION}" >> $GITHUB_OUTPUT
echo "CHANGE_LOG=${CHANGE_LOG}" >> $GITHUB_OUTPUT
{
echo "CHANGE_LOG<<CHANGELOG_EOF"
echo "${CHANGE_LOG}"
echo "CHANGELOG_EOF"
} >> $GITHUB_OUTPUT
echo "APP_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_OUTPUT
- name: Build
run: |