Skip to content

Commit

Permalink
fix(cd): fix release body generation
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyMichaelTDM committed Oct 11, 2024
1 parent 7c09231 commit f9bb635
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,15 @@ jobs:
id: body
shell: bash
run: |
echo "Release for ${{ steps.get_release_tag.outputs.RELEASE_TAG }}" >> $GITHUB_OUTPUT
echo "SHA256 Checksums:" >> $GITHUB_OUTPUT
echo '```' >> $GITHUB_OUTPUT
touch body.txt
echo "Release for ${{ steps.get_release_tag.outputs.RELEASE_TAG }}" >> body.txt
echo "SHA256 Checksums:" >> body.txt
echo '```' >> body.txt
for file in ${{ steps.download_artifacts.outputs.download-path }}/**/*.sha256; do
echo "$(cat $file)" >> $GITHUB_OUTPUT
echo "$(cat $file)" >> $body.txt
done
echo '```' >> $GITHUB_OUTPUT
echo '```' >> body.txt
echo "BODY=$(cat body.txt)" >> $GITHUB_OUTPUT
- name: Create or Update GitHub Release
id: create_release
Expand All @@ -205,7 +207,7 @@ jobs:
draft: false
prerelease: false
generate_release_notes: true
body: ${{ steps.body.outputs.GITHUB_OUTPUT }}
body: ${{ steps.body.outputs.BODY }}
files: |
${{ steps.download_artifacts.outputs.download-path }}/**/*.tar.gz
${{ steps.download_artifacts.outputs.download-path }}/**/*.zip
Expand Down

0 comments on commit f9bb635

Please sign in to comment.