Skip to content

Commit

Permalink
fix(pr): fix the pr action
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelAlphonso committed Jun 6, 2022
1 parent 36ab439 commit 92f3b44
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/create-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 92f3b44

Please sign in to comment.