@@ -253,29 +253,6 @@ jobs:
253253 run : |
254254 npx semantic-release --tag-format "${TAG_FORMAT}"
255255
256- - name : Get release for editing
257- if : ${{ !inputs.dry_run }}
258- id : get_release
259- # version 1.2.4
260- uses : cardinalby/git-get-release-action@5172c3a026600b1d459b117738c605fabc9e4e44
261- env :
262- GITHUB_TOKEN : ${{ github.token }}
263- with :
264- tag : ${{ steps.output_version_tag.outputs.VERSION_TAG }}
265-
266- - name : Edit Release
267- if : ${{ !inputs.dry_run }}
268- # version 1.2.0
269- uses : irongut/EditRelease@ccf529ad26dddf9996e7dd0f24ca5da4ea507cc2
270- with :
271- token : ${{ secrets.GITHUB_TOKEN }}
272- id : ${{ steps.get_release.outputs.id }}
273- body : |
274- ## Info
275- [Release workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) - Workflow ID: ${{ github.run_id }}
276-
277- It was initialized by [${{ github.event.sender.login }}](${{ github.event.sender.html_url }})
278-
279256 - name : Checkout gh-pages branch
280257 if : ${{ !inputs.dry_run }}
281258 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
@@ -289,7 +266,6 @@ jobs:
289266 if : ${{ !inputs.dry_run }}
290267 working-directory : gh-pages
291268 env :
292- RELEASE_ID : ${{ steps.get_release.outputs.id }}
293269 VERSION_TAG : ${{ steps.output_version_tag.outputs.VERSION_TAG }}
294270 GH_REPO : ${{ github.repository }}
295271 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -299,8 +275,7 @@ jobs:
299275 notes_dir="release_notes"
300276 mkdir -p "$notes_dir"
301277 note_file="$notes_dir/${VERSION_TAG}.md"
302-
303- gh api "/repos/${GH_REPO}/releases/${RELEASE_ID}" | jq -r '.body // ""' > "$note_file"
278+ cp ../electronic-prescription-service-api/CHANGELOG.md "$note_file"
304279
305280 if [ ! -s "$note_file" ]; then
306281 echo "Release notes are empty; skipping gh-pages update."
0 commit comments