Skip to content

Commit cd6a244

Browse files
authored
fix: creation of the release body (#30)
1 parent 466cff7 commit cd6a244

2 files changed

Lines changed: 1 addition & 20 deletions

File tree

.github/workflows/release.yaml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -84,29 +84,12 @@ jobs:
8484
ocm add componentversions --create \
8585
--file openmcp-ctf component-constructor.yaml \
8686
--settings components-versions.yaml -- OPENMCP_VERSION=${{ env.version }} OPENMCP_VERSION_COMMIT=$(git show-ref --hash ${{ env.version }})
87-
88-
- name: Get PR body for current commit
89-
id: release_highlights
90-
if: ${{ env.SKIP != 'true' }}
91-
92-
run: |
93-
COMMIT_SHA=$(git rev-parse HEAD)
94-
PR_NUMBER=$(gh pr list --search "$COMMIT_SHA" --state merged --json number --jq '.[0].number')
95-
if [ -z "$PR_NUMBER" ]; then
96-
echo "No PR found for commit $COMMIT_SHA, skipping."
97-
echo "pr_body=" >> "$GITHUB_ENV"
98-
exit 0
99-
fi
100-
echo "pr_body=\"$(gh pr view "$PR_NUMBER" --json body --jq .body)\"" >> "$GITHUB_ENV"
101-
env:
102-
GITHUB_TOKEN: ${{ github.token }}
10387
10488
- name: Build Changelog
10589
if: ${{ env.SKIP != 'true' }}
10690
id: constructed_release
10791
run: |
10892
cat hack/release-body.tpl > RELEASE_BODY.md
109-
echo "${{ env.pr_body }}" >> RELEASE_BODY.md
11093
echo -e "## Components:\n" >> RELEASE_BODY.md
11194
./hack/generate_release_notes.sh openmcp-ctf >> RELEASE_BODY.md
11295
env:

hack/release-body.tpl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
# MCP Landscape
2-
3-
## Highlights
1+
# openMCP

0 commit comments

Comments
 (0)