Skip to content

Commit b5887aa

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

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/ubuntu.yml

Lines changed: 6 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,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

0 commit comments

Comments
 (0)