Skip to content

[otel-integration] add otel-integration version header #1

[otel-integration] add otel-integration version header

[otel-integration] add otel-integration version header #1

name: Otel Integration Version Check
on:
pull_request:
paths:
- 'otel-integration/k8s-helm/**'
jobs:
collector-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Read Chart version
run: |
chart_version=$(yq '.version' Chart.yaml)
echo "Chart.yaml version: $chart_version"
- name: Read values.yaml version
run: |
version=$(yq '.global.version' values.yaml)
echo "values.yaml version: $version"
- name: Compare versions
run: |
chart_version=$(yq '.version' Chart.yaml)
values_version=$(yq '.global.version' values.yaml)
if [[ "$chart_version" != "$values_version" ]]; then
echo "Chart.yaml version ($chart_version) does not match values.yaml version ($values_version)"
exit 1
fi
echo "Versions match!"