Skip to content

Commit

Permalink
[chore] Automate adding release notes to the release (#2657)
Browse files Browse the repository at this point in the history
  • Loading branch information
swiatekm authored Feb 28, 2024
1 parent 7b9298e commit aa994e8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .ci/create-release-github.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
#!/bin/bash

OPERATOR_VERSION=$(git describe --tags)
NOTES_FILE=/tmp/notes.md
OPERATOR_VERSION=$(git describe --tags --abbrev=0)
PREVIOUS_OPERATOR_VERSION=$(git describe --tags --abbrev=0 "${OPERATOR_VERSION}^")
# Note: Changelog headers don't have the `v` prefix, so we need to drop the first letter in the sed expression below
sed -n "/${OPERATOR_VERSION:1}/,/${PREVIOUS_OPERATOR_VERSION:1}/{/${PREVIOUS_OPERATOR_VERSION:1}/!p;}" CHANGELOG.md >${NOTES_FILE}

gh config set prompt disabled
gh release create \
-t "Release ${OPERATOR_VERSION}" \
--notes-file ${NOTES_FILE} \
"${OPERATOR_VERSION}" \
'dist/opentelemetry-operator.yaml#Installation manifest for Kubernetes'

0 comments on commit aa994e8

Please sign in to comment.