File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -150,10 +150,17 @@ jobs:
150
150
name : ruby-layer.zip
151
151
path : lambda
152
152
153
+ - name : extract current solarwinds_apm version from Local
154
+ if : ${{ github.event.inputs.solarwinds-source == 'Local' }}
155
+ run : |
156
+ APM_VERSION=$(ruby -r './lib/solarwinds_apm/version.rb' -e 'puts SolarWindsAPM::Version::STRING')
157
+ echo "SOLARWINDS_APM_VERSION=$APM_VERSION" >> $GITHUB_ENV
158
+
153
159
- name : extract current solarwinds_apm version
160
+ if : ${{ github.event.inputs.solarwinds-source == 'RubyGem' }}
154
161
run : |
155
- APM_VERSION=$(grep "gem 'solarwinds_apm'" lambda/otel/layer/Gemfile | awk -F"'" '{print $4}')
156
- APM_VERSION="${APM_VERSION//./_}"
162
+ sudo apt-get update && apt-get install -y jq curl
163
+ APM_VERSION=$(curl -s https://rubygems.org/api/v1/gems/solarwinds_apm.json | jq -r .version)
157
164
echo "SOLARWINDS_APM_VERSION=$APM_VERSION" >> $GITHUB_ENV
158
165
159
166
- name : publish lambda layer
You can’t perform that action at this time.
0 commit comments