Skip to content

Commit

Permalink
Update build-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pbek authored Oct 30, 2020
1 parent 32975e1 commit 72735f0
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,16 @@ jobs:
export TAG=v${VERSION}.${GITHUB_RUN_ID}.${GITHUB_RUN_NUMBER}
#export TAG=v${VERSION}
export RELEASE_TEXT=$(grep -Pzo "## ${VERSION}\n(\n|.)+?\n##" ../CHANGELOG.md | sed '$ d')
RELEASE_TEXT="${RELEASE_TEXT//'%'/'%25'}"
RELEASE_TEXT="${RELEASE_TEXT//$'\n'/'%0A'}"
RELEASE_TEXT="${RELEASE_TEXT//$'\r'/'%0D'}"
#RELEASE_TEXT="${RELEASE_TEXT//'%'/'%25'}"
#RELEASE_TEXT="${RELEASE_TEXT//$'\n'/'%0A'}"
#RELEASE_TEXT="${RELEASE_TEXT//$'\r'/'%0D'}"
echo "VERSION=${VERSION}" >> $GITHUB_ENV
echo "TAG=${TAG}" >> $GITHUB_ENV
echo "RELEASE_TEXT=${RELEASE_TEXT}" >> $GITHUB_ENV
# add multiline release text
echo "RELEASE_TEXT<<EOF" >> $GITHUB_ENV
echo "${RELEASE_TEXT}" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
#echo "RELEASE_TEXT<<EOF" >> $GITHUB_ENV
#echo "${RELEASE_TEXT}" >> $GITHUB_ENV
#echo "EOF" >> $GITHUB_ENV
- name: Printenv
run: |
echo "VERSION=${VERSION}"
Expand Down

0 comments on commit 72735f0

Please sign in to comment.