fix issue with prepare-release-pr workflow

This commit is contained in:
h1dden-da3m0n 2021-06-05 17:38:45 +02:00
parent 399fc32b60
commit bf3830959d
1 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
name: Create Release PR
name: Create Prepare-Release PR
on:
workflow_dispatch:
@ -25,9 +25,12 @@ jobs:
cat << EOF >> cl.md
${{ steps.draft.outputs.body }}
EOF
sed -i cl.md -e 's/^*/-/'
TAG="${{ steps.draft.outputs.tag_name }}"
echo "VERSION=${TAG#v}" >> $GITHUB_ENV
echo "CHANGELOG=`cat cl.md | grep '*'`" >> $GITHUB_ENV
echo "CHANGELOG<<EOF" >> $GITHUB_ENV
cat cl.md | grep '^-' >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
rm cl.md
- name: Checkout repository