We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 699e034 commit fcf337cCopy full SHA for fcf337c
.ci/create-release-github.sh
@@ -1,9 +1,14 @@
1
#!/bin/bash
2
3
-OPERATOR_VERSION=$(git describe --tags)
+NOTES_FILE=/tmp/notes.md
4
+OPERATOR_VERSION=$(git describe --tags --abbrev=0)
5
+PREVIOUS_OPERATOR_VERSION=$(git describe --tags --abbrev=0 "${OPERATOR_VERSION}^")
6
+# Note: Changelog headers don't have the `v` prefix, so we need to drop the first letter in the sed expression below
7
+sed -n "/${OPERATOR_VERSION:1}/,/${PREVIOUS_OPERATOR_VERSION:1}/{/${PREVIOUS_OPERATOR_VERSION:1}/!p;}" CHANGELOG.md >${NOTES_FILE}
8
9
gh config set prompt disabled
10
gh release create \
11
-t "Release ${OPERATOR_VERSION}" \
12
+ --notes-file ${NOTES_FILE} \
13
"${OPERATOR_VERSION}" \
14
'dist/opentelemetry-operator.yaml#Installation manifest for Kubernetes'
0 commit comments