File tree Expand file tree Collapse file tree 2 files changed +7
-259
lines changed Expand file tree Collapse file tree 2 files changed +7
-259
lines changed Original file line number Diff line number Diff line change @@ -139,12 +139,16 @@ jobs:
139
139
env :
140
140
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
141
141
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
143
147
cat > release_notes.md << EOF
144
148
This release contains updates of the following upstream components:
145
149
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
148
152
149
153
This release also publishes to public ECR and PyPi.
150
154
* See ADOT Python auto-instrumentation Docker image v${{ github.event.inputs.version }} in our public ECR repository:
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments