Skip to content

Commit 573a3d8

Browse files
authored
release: v0.0.4 (#615)
* chore: bump version to v0.0.4 * chore: copy PR body
1 parent c311d22 commit 573a3d8

1 file changed

Lines changed: 2 additions & 19 deletions

File tree

‎.github/workflows/auto-release.yml‎

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,6 @@ jobs:
3030
echo "tag=v${VERSION}" >> $GITHUB_OUTPUT
3131
echo "Extracted version: ${VERSION}, tag: v${VERSION}"
3232
33-
- name: Prepare release body from PR description
34-
id: pr_description
35-
run: |
36-
PR_BODY="${{ github.event.pull_request.body }}"
37-
if [ -z "$PR_BODY" ] || [ "$PR_BODY" = "null" ]; then
38-
echo "body<<EOF" >> "$GITHUB_OUTPUT"
39-
echo "## Release ${{ steps.extract_version.outputs.tag }}" >> "$GITHUB_OUTPUT"
40-
echo "" >> "$GITHUB_OUTPUT"
41-
echo "This is an automatically created draft release. Please review and update the release notes before publishing." >> "$GITHUB_OUTPUT"
42-
echo "" >> "$GITHUB_OUTPUT"
43-
echo "See \`.github/release-template.md\` for the release notes template." >> "$GITHUB_OUTPUT"
44-
echo "EOF" >> "$GITHUB_OUTPUT"
45-
else
46-
echo "body<<EOF" >> "$GITHUB_OUTPUT"
47-
echo "$PR_BODY" >> "$GITHUB_OUTPUT"
48-
echo "EOF" >> "$GITHUB_OUTPUT"
49-
fi
50-
5133
- name: Create and push tag
5234
run: |
5335
git config user.name "github-actions[bot]"
@@ -60,7 +42,8 @@ jobs:
6042
with:
6143
tag_name: ${{ steps.extract_version.outputs.tag }}
6244
name: Release ${{ steps.extract_version.outputs.tag }}
63-
body: ${{ steps.pr_description.outputs.body }}
45+
body: |
46+
${{ github.event.pull_request.body }}
6447
draft: true
6548
prerelease: false
6649
env:

0 commit comments

Comments
 (0)