Skip to content

Commit

Permalink
Merge pull request #148 from bogdantimes/bogdantimes-patch-1
Browse files Browse the repository at this point in the history
Update package.json
  • Loading branch information
bogdantimes authored Jul 30, 2024
2 parents c9e4f8b + df47e18 commit 78b8692
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ jobs:
id: extract_release_notes
run: |
VERSION=${{ steps.package_version.outputs.version }}
NOTES=$(awk -v ver="$VERSION" '/^# '{if($2==ver){flag=1;next}else{flag=0}}/^# /{if(flag){exit}}flag' CHANGELOG.md)
NOTES=$(awk -v ver="$VERSION" '/^# /{if($2==ver){flag=1;next}else{flag=0}} flag' CHANGELOG.md | sed -n '/^# /q;p')
NOTES="${NOTES//'%'/'%25'}"
NOTES="${NOTES//$'\n'/'%0A'}"
NOTES="${NOTES//$'\r'/'%0D'}"
echo "release_notes=$NOTES" >> $GITHUB_OUTPUT
echo "release_notes<<EOF" >> $GITHUB_OUTPUT
echo "$NOTES" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Create Release
id: create_release
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "trading-helper",
"version": "4.4.0",
"version": "4.4.1",
"description": "",
"scripts": {
"glogin": "clasp login",
Expand Down

0 comments on commit 78b8692

Please sign in to comment.