Skip to content

Commit f11e79b

Browse files
committed
fix building release notes
1 parent 11a5b31 commit f11e79b

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/actions/build-release-notes/action.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ runs:
66
- name: Write release notes
77
shell: bash
88
run: |
9-
VERSION="${{ github.event.release.tag_name }}"
10-
cat <<'EOF' > docs/release.md
11-
# Mokapi ${{ github.event.release.tag_name }}
12-
13-
${{ github.event.release.body }}
14-
EOF
9+
VERSION=$(jq -r '.release.tag_name' "$GITHUB_EVENT_PATH")
10+
BODY=$(jq -r '.release.body' "$GITHUB_EVENT_PATH")
11+
{
12+
echo "# Mokapi $VERSION"
13+
echo
14+
echo "$BODY"
15+
} > docs/release.md
1516
- name: Upload UI artifact
1617
uses: actions/upload-artifact@v4
1718
with:

0 commit comments

Comments
 (0)