Skip to content

Commit

Permalink
pre-release gitflow
Browse files Browse the repository at this point in the history
  • Loading branch information
oktoshi committed Dec 18, 2024
1 parent e5826f7 commit 559301e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,16 @@ jobs:
id: get_tag
run: echo "TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT

- name: Generate Release Body
- name: Generate Release Body
id: release_body
run: |
if [ -f CHANGELOG.md ]; then
echo "body=$(cat CHANGELOG.md)" >> $GITHUB_OUTPUT
else
echo "body=No changelog provided for this release." >> $GITHUB_OUTPUT
fi
if [ -f CHANGELOG.md ]; then
# Replace newlines with escaped newlines and handle special characters
body="$(awk '{printf "%s\\n", $0}' CHANGELOG.md | sed 's/"/\\"/g')"
echo "body=${body}" >> $GITHUB_OUTPUT
else
echo "body=No changelog provided for this release." >> $GITHUB_OUTPUT
fi
- name: Create GitHub Release
uses: actions/create-release@v1
Expand Down

0 comments on commit 559301e

Please sign in to comment.