Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,29 +84,12 @@ jobs:
ocm add componentversions --create \
--file openmcp-ctf component-constructor.yaml \
--settings components-versions.yaml -- OPENMCP_VERSION=${{ env.version }} OPENMCP_VERSION_COMMIT=$(git show-ref --hash ${{ env.version }})

- name: Get PR body for current commit
id: release_highlights
if: ${{ env.SKIP != 'true' }}

run: |
COMMIT_SHA=$(git rev-parse HEAD)
PR_NUMBER=$(gh pr list --search "$COMMIT_SHA" --state merged --json number --jq '.[0].number')
if [ -z "$PR_NUMBER" ]; then
echo "No PR found for commit $COMMIT_SHA, skipping."
echo "pr_body=" >> "$GITHUB_ENV"
exit 0
fi
echo "pr_body=\"$(gh pr view "$PR_NUMBER" --json body --jq .body)\"" >> "$GITHUB_ENV"
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Build Changelog
if: ${{ env.SKIP != 'true' }}
id: constructed_release
run: |
cat hack/release-body.tpl > RELEASE_BODY.md
echo "${{ env.pr_body }}" >> RELEASE_BODY.md
echo -e "## Components:\n" >> RELEASE_BODY.md
./hack/generate_release_notes.sh openmcp-ctf >> RELEASE_BODY.md
env:
Expand Down
4 changes: 1 addition & 3 deletions hack/release-body.tpl
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
# MCP Landscape

## Highlights
# openMCP