Skip to content

Commit

Permalink
Fix version handling
Browse files Browse the repository at this point in the history
  • Loading branch information
pbek authored Jul 23, 2020
1 parent ad6b5b5 commit 4ca7cc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
run: |
export VERSION=$(cat version.h | sed 's/[^0-9,.]//g')
export TAG=v${VERSION}.${GITHUB_RUN_ID}.${GITHUB_RUN_NUMBER}
export RELEASE_TEXT=$(grep -Pzo '## 20.7.4\n(\n|.)+?\n##' ../CHANGELOG.md | sed '$ d')
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'}"
Expand Down

0 comments on commit 4ca7cc4

Please sign in to comment.