File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,3 @@ config-variables: null
8
8
paths :
9
9
.github/workflows/**/*.{yml,yaml} :
10
10
ignore :
11
-
12
- # shellcheck gets confused between VERSION env var and version bash variable.
13
- - " .*VERSION may not be assigned. Did you mean version.*"
Original file line number Diff line number Diff line change 71
71
exit 1
72
72
fi
73
73
74
- version="${VERSION//-alpha/}"
75
- hash=$(curl -L "https://github.com/open-telemetry/opentelemetry-java-contrib/releases/download/v$version/opentelemetry-jmx-metrics.jar" \
74
+ hash=$(curl -L "https://github.com/open-telemetry/opentelemetry-java-contrib/releases/download/v${VERSION//-alpha/}/opentelemetry-jmx-metrics.jar" \
76
75
| sha256sum \
77
76
| cut -d ' ' -f 1)
78
77
@@ -180,14 +179,14 @@ jobs:
180
179
181
180
- name : Update version
182
181
env :
183
- version : ${{ needs.check-jmx-scraper-version.outputs.latest-version }}
182
+ VERSION : ${{ needs.check-jmx-scraper-version.outputs.latest-version }}
184
183
run : |
185
- if [[ ! "$version " =~ -alpha$ ]]; then
184
+ if [[ ! "$VERSION " =~ -alpha$ ]]; then
186
185
echo currently expecting jmx scraper version to end with "-alpha"
187
186
exit 1
188
187
fi
189
188
190
- hash=$(curl -L "https://repo1.maven.org/maven2/io/opentelemetry/contrib/opentelemetry-jmx-scraper/$version/ opentelemetry-jmx-scraper-$version .jar" \
189
+ hash=$(curl -L "https://repo1.maven.org/maven2/io/opentelemetry/contrib/opentelemetry-jmx-scraper/${VERSION//-alpha/}/ opentelemetry-jmx-scraper-$VERSION .jar" \
191
190
| sha256sum \
192
191
| cut -d ' ' -f 1)
193
192
You can’t perform that action at this time.
0 commit comments