Skip to content

Commit ef5e24d

Browse files
committed
Replace Release Note Generation
1 parent 5855936 commit ef5e24d

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

.github/workflows/create_release.yaml

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release Notes
33
on:
44
push:
55
tags:
6-
- '*'
6+
- "*"
77

88
jobs:
99
notes:
@@ -12,26 +12,8 @@ jobs:
1212
- uses: actions/checkout@v4
1313
with:
1414
fetch-depth: 0
15-
- name: Get Previous Tag
16-
run: |
17-
PREVIOUS_TAG=$(git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1))
18-
echo ${PREVIOUS_TAG}
19-
echo "previous_tag=${PREVIOUS_TAG}" >> $GITHUB_ENV
20-
- name: Get New Tag
21-
run: |
22-
NEW_TAG=${GITHUB_REF#refs/tags/}
23-
echo ${NEW_TAG}
24-
echo "new_tag=${NEW_TAG}" >> $GITHUB_ENV
2515
- uses: actions/setup-node@v4
26-
- name: Generate Release Notes
27-
id: notes
28-
run: |
29-
NOTES=$(npx generate-github-release-notes jrjohnson ember-cli-image-transformer ${{ env.previous_tag }} ${{env.new_tag}})
30-
echo ${NOTES}
31-
# remove line breaks from notes so they can be passed around
32-
NOTES="${NOTES//$'\n'/'%0A'}"
33-
echo "release_notes=${NOTES}" >> $GITHUB_ENV
3416
- uses: ncipollo/release-action@v1
3517
with:
36-
body: ${{env.release_notes}}
3718
token: ${{ secrets.MY_TOKEN }}
19+
generateReleaseNotes: true

0 commit comments

Comments
 (0)