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

View file

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