Skip to content

Commit

Permalink
Add release body
Browse files Browse the repository at this point in the history
  • Loading branch information
Mileshin committed Nov 1, 2024
1 parent 170456a commit 339afd0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,18 @@ jobs:
run: |
echo "## What's Changed" > release_body.md
cat CHANGELOG.md >> release_body.md
echo "\n[Docker Hub](https://hub.docker.com/r/${{ secrets.DOCKERHUB_USERNAME }}/kube-info)" >> release_body.md
echo -e "\n\n[Docker Hub](https://hub.docker.com/r/${{ secrets.DOCKERHUB_USERNAME }}/kube-info)" >> release_body.md
- name: Read release body
id: read_body
run: echo "RELEASE_BODY<<EOF" >> $GITHUB_ENV && cat release_body.md >> $GITHUB_ENV && echo "EOF" >> $GITHUB_ENV

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
name: Release ${{ github.ref_name }}
body: |
$(cat release_body.md)
body: ${{ env.RELEASE_BODY }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 339afd0

Please sign in to comment.