Debian Codegraph @

.github/workflows/scripts/release-create-tracking-issue.sh

raw
1 #!/bin/bash -ex
2 #
3 # Copyright The OpenTelemetry Authors
4 # SPDX-License-Identifier: Apache-2.0
5
6 RELEASE_VERSION=v${CANDIDATE_STABLE}/v${CANDIDATE_BETA}
7 if [ "${CANDIDATE_STABLE}" == "" ]; then
8 RELEASE_VERSION="v${CANDIDATE_BETA}"
9 fi
10 if [ "${CANDIDATE_BETA}" == "" ]; then
11 RELEASE_VERSION="v${CANDIDATE_STABLE}"
12 fi
13
14 EXISTING_ISSUE=$( gh issue list --search "in:title Release ${RELEASE_VERSION}" --json url --jq '.[].url' --repo "${REPO}" --state open --label release )
15
16 if [ "${EXISTING_ISSUE}" != "" ]; then
17 echo "Issue already exists: ${EXISTING_ISSUE}"
18 exit 0
19 fi
20
21 gh issue create -a "${GITHUB_ACTOR}" --repo "${REPO}" --label release --title "Release ${RELEASE_VERSION}" --body "Like #4522, but for ${RELEASE_VERSION}
22 **Performed by collector release manager**
23
24 - [ ] Prepare core release ${RELEASE_VERSION}
25 - [ ] Tag and release core ${RELEASE_VERSION}
26 - [ ] Prepare contrib release v${CANDIDATE_BETA}
27 - [ ] Tag and release contrib v${CANDIDATE_BETA}
28 - [ ] Prepare otelcol-releases v${CANDIDATE_BETA}
29 - [ ] Release binaries and container images v${CANDIDATE_BETA}
30
31 **Performed by operator maintainers**
32
33 - [ ] Release the operator v${CANDIDATE_BETA}
34
35 **Performed by helm chart maintainers**
36
37 - [ ] Update the opentelemetry-collector helm chart to use v${CANDIDATE_BETA}"