Skip to content

Commit

Permalink
release-action: fix release extraction (#355)
Browse files Browse the repository at this point in the history
* fix release extraction

* prepare changelog
  • Loading branch information
foxriver76 authored Jul 23, 2024
1 parent 1d108b8 commit dc69df2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
const package = require('./package.json');
return package.version
- name: Extract the version and commit body from the tag
- name: Extract the commit body
id: extract_release
# The body may be multiline, therefore we need to escape some characters
run: |
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ jobs:
- name: Checkout repository
if: steps.automerge.outputs.mergeResult == 'merged'
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch the history, or this action won't work

- name: Use Node.js 18
if: steps.automerge.outputs.mergeResult == 'merged'
Expand Down Expand Up @@ -101,14 +103,11 @@ jobs:
npm whoami
npm publish
- name: Extract the version and commit body from the tag
- name: Extract the commit body
if: steps.automerge.outputs.mergeResult == 'merged'
id: extract_release
# The body may be multiline, therefore we need to escape some characters
run: |
VERSION="${{ github.ref }}"
VERSION=${VERSION##*/v}
echo "::set-output name=VERSION::$VERSION"
BODY=$(git show -s --format=%b)
BODY="${BODY//'%'/'%25'}"
BODY="${BODY//$'\n'/'%0A'}"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@ The adapter is tested with an DENON AVR-X1200W and a Marantz SR5009.
Placeholder for the next version (at the beginning of the line):
### __WORK IN PROGRESS__
-->
### 1.15.10 (2024-07-23)
### __WORK IN PROGRESS__
* (foxriver76) updated dependencies
* (foxriver76) added tier and license information
* (foxriver76) fixed invalid object `denon.0`
Expand Down

0 comments on commit dc69df2

Please sign in to comment.