Skip to content

Commit 4298ed1

Browse files
committed
remove lambda release and automate release notes
1 parent c51ca82 commit 4298ed1

File tree

2 files changed

+7
-259
lines changed

2 files changed

+7
-259
lines changed

.github/workflows/release-build.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,16 @@ jobs:
139139
env:
140140
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
141141
run: |
142-
# Create release notes template
142+
# Extract versions from pyproject.toml
143+
SDK_VERSION=$(grep "opentelemetry-sdk ==" aws-opentelemetry-distro/pyproject.toml | sed 's/.*== \([^,]*\).*/\1/' | tr -d '"')
144+
INSTRUMENTATION_VERSION=$(grep "opentelemetry-instrumentation ==" aws-opentelemetry-distro/pyproject.toml | sed 's/.*== \([^,]*\).*/\1/' | tr -d '"')
145+
146+
# Create release notes
143147
cat > release_notes.md << EOF
144148
This release contains updates of the following upstream components:
145149
146-
OpenTelemetry Python - <opentelemetry-sdk version number - e.g. 1.22.0>
147-
OpenTelemetry Python Contrib - <opentelemetry-instrumentation version number - e.g. 0.43b0>
150+
OpenTelemetry Python - $SDK_VERSION
151+
OpenTelemetry Python Contrib - $INSTRUMENTATION_VERSION
148152
149153
This release also publishes to public ECR and PyPi.
150154
* See ADOT Python auto-instrumentation Docker image v${{ github.event.inputs.version }} in our public ECR repository:

.github/workflows/release-lambda.yml

Lines changed: 0 additions & 256 deletions
This file was deleted.

0 commit comments

Comments
 (0)