Skip to content

Commit

Permalink
fix(pr): switch to base branch to make sure it's available
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelAlphonso committed Jun 7, 2022
1 parent 2516833 commit 748fe1c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/create-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ jobs:
- name: Exrtact changelog
shell: bash
run: |
CHANGELOG=$(./create-release-notes --from '${{ github.event.inputs.base }} --' --group)
git switch ${{ github.event.inputs.base }}
git switch -
CHANGELOG=$(./create-release-notes --from ${{ github.event.inputs.base }} --group)
CHANGELOG="${CHANGELOG//'%'/'%25'}"
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
Expand Down

0 comments on commit 748fe1c

Please sign in to comment.