Skip to content

Commit 30dab3a

Browse files
committed
Download the latest otelcol.
1 parent 2b94dcf commit 30dab3a

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/ubuntu.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: Ubuntu build
22

33
on:
44
push:
5-
branches:
6-
- main
75
pull_request:
86

97
jobs:
@@ -35,10 +33,14 @@ jobs:
3533
-DNGX_OTEL_DEV=ON ..
3634
make -j $(nproc)
3735
- name: Download otelcol
36+
env:
37+
URL: >-
38+
https://github.com/open-telemetry/opentelemetry-collector-releases/
39+
releases/latest/
3840
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
41+
curl -sLo - ${URL}download/otelcol_\
42+
$(curl -sLo - ${URL} | grep -oP -m 1 "v\d+\.\d+\.\d+" | cut -c2-)\
43+
_linux_amd64.tar.gz | tar -xzv
4244
- name: Install test dependencies
4345
run: pip install -r tests/requirements.txt
4446
- name: Run tests

0 commit comments

Comments
 (0)