Skip to content

Commit ab430ee

Browse files
authored
fix: output otel ruby sdk version (open-telemetry#1443)
1 parent d20946e commit ab430ee

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/release.yml

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ changelog:
1919
labels:
2020
- java
2121

22+
- title: Ruby
23+
labels:
24+
- ruby
25+
2226
- title: Other Dependencies
2327
labels:
2428
- dependencies

.github/workflows/release-layer-ruby.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,20 @@ jobs:
1919
- uses: actions/checkout@v4
2020

2121
- name: Build
22-
id: save-ruby-sdk-version
2322
run: |
2423
./build.sh
2524
shell: bash
2625
working-directory: ruby/src
2726

27+
- name: Save Ruby SDK Version
28+
id: save-ruby-sdk-version
29+
run: |
30+
unzip -q build/opentelemetry-ruby-layer.zip
31+
export GEM_PATH=$PWD/ruby/gems/3.2.0/
32+
RUBY_SDK_VERSION=$(ruby -e 'require "opentelemetry-sdk"; puts OpenTelemetry::SDK::VERSION')
33+
echo "RUBY_SDK_VERSION=$RUBY_SDK_VERSION" >> $GITHUB_OUTPUT
34+
working-directory: ruby/src
35+
2836
- name: Show directory contents
2937
run: |
3038
ls -al

0 commit comments

Comments
 (0)