diff --git a/.github/workflows/create-pull-request.yaml b/.github/workflows/create-pull-request.yaml index f452c0653..26189c096 100644 --- a/.github/workflows/create-pull-request.yaml +++ b/.github/workflows/create-pull-request.yaml @@ -39,7 +39,12 @@ jobs: - name: Exrtact changelog shell: bash - run: echo "##[set-output name=changelog;]$(npx conventional-changelog --config conventional-changelog-pr.json)" + run: | + CHANGELOG=$(npx conventional-changelog --config conventional-changelog-pr.json) + CHANGELOG="${CHANGELOG//'%'/'%25'}" + CHANGELOG="${CHANGELOG//$'\n'/'%0A'}" + CHANGELOG="${CHANGELOG//$'\r'/'%0D'}" + echo "::set-output name=changelog::CHANGELOG" id: extract_changelog - name: pull-request