Skip to content

Commit

Permalink
chore: ident workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
oktoshi committed Dec 18, 2024
1 parent aa9b41a commit 53207ed
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,12 @@ jobs:
- name: Generate Release Body
id: release_body
run: |
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
if [ -f CHANGELOG.md ]; then
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 53207ed

Please sign in to comment.