Skip to content

Commit

Permalink
fix(release): fix changelog output to be multiline
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikaël Bouchez committed Jan 14, 2022
1 parent 4f31a2e commit c510aa4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,15 @@ jobs:
CHANGELOG=$(yarn conventional-changelog -p conventionalcommits -r -u 0)
echo -e "${CHANGELOG}\n\n\n\n$(cat CHANGELOG.md)" > CHANGELOG.md
BODY=$(echo -e "${CHANGELOG}" | sed -e "1,2d")
echo "::set-output name=body::$(echo -e "${BODY}")"
BODY="${BODY//'%'/'%25'}"
BODY="${BODY//$'\n'/'%0A'}"
BODY="${BODY//$'\r'/'%0D'}"
echo "::set-output name=body::${BODY}"
- name: Log changes
run: |
echo "The changelog will be : ${{ steps.changelog.outputs.body }}"
- name: Get version
id: package-version
uses: martinbeentjes/npm-get-version-action@v1.1.0
Expand Down

0 comments on commit c510aa4

Please sign in to comment.