Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: otlpinf-release
on:
push:
pull_request:
branches: [ "main" ]
schedule:
- cron: '0 0 * * 1'
Expand All @@ -18,13 +18,11 @@ jobs:
- id: early
name: New version check
run: |
OTEL_LATEST_RELEASE=$(curl -L -s -H 'Accept: application/json' https://github.com/open-telemetry/opentelemetry-collector-releases/releases/latest)
OTEL_LATEST_VERSION=$(echo $OTEL_LATEST_RELEASE | sed -e 's/.*"tag_name":"\([^"]*\)".*/\1/')
INF_LATEST_RELEASE=$(curl -L -s -H 'Accept: application/json' https://github.com/netboxlabs/opentelemetry-infinity/releases/latest)
INF_LATEST_VERSION=$(echo $INF_LATEST_RELEASE | sed -e 's/.*"tag_name":"\([^"]*\)".*/\1/')
OTEL_TARGET_VERSION="v0.134.1"
release=''
if [[ $OTEL_LATEST_VERSION != $INF_LATEST_VERSION ]]; then
release=$OTEL_LATEST_VERSION
INF_RELEASE_STATUS=$(curl -L -s -o /dev/null -w "%{http_code}" https://github.com/netboxlabs/opentelemetry-infinity/releases/tag/$OTEL_TARGET_VERSION)
if [[ "$INF_RELEASE_STATUS" != "200" ]]; then
release=$OTEL_TARGET_VERSION
fi
echo "release=$release" >> $GITHUB_OUTPUT

Expand Down Expand Up @@ -128,4 +126,4 @@ jobs:
tags: |
netboxlabs/opentelemetry-infinity:develop
netboxlabs/opentelemetry-infinity:latest
netboxlabs/opentelemetry-infinity:${{ env.TAG }}
netboxlabs/opentelemetry-infinity:${{ env.TAG }}