File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ name: Ubuntu build
22
33on :
44 push :
5- branches :
6- - main
75 pull_request :
86
97jobs :
@@ -35,10 +33,13 @@ jobs:
3533 -DNGX_OTEL_DEV=ON ..
3634 make -j $(nproc)
3735 - name : Download otelcol
36+ env :
37+ URL : " https://github.com/open-telemetry/\
38+ opentelemetry-collector-releases/releases/latest/"
3839 run : |
39- curl -sLo - https://github.com/ \
40- open-telemetry/opentelemetry-collector-releases/releases/download/ \
41- v0.115.1/otelcol_0.115.1_linux_amd64 .tar.gz | tar -xzv
40+ curl -sLo - ${URL}download/otelcol_ \
41+ $(curl -sLo - ${URL} | grep -oP -m 1 "v\d+\.\d+\.\d+" | cut -c2-) \
42+ _linux_amd64 .tar.gz | tar -xzv
4243 - name : Install test dependencies
4344 run : pip install -r tests/requirements.txt
4445 - name : Run tests
You can’t perform that action at this time.
0 commit comments