Skip to content

bug_fix: profiling configs (#2365) #676

bug_fix: profiling configs (#2365)

bug_fix: profiling configs (#2365) #676

Workflow file for this run

name: Release Charts
on:
workflow_dispatch:
push:
branches:
- main
permissions:
contents: write
jobs:
maybe_update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 0
- name: Check if the release is needed
id: check_update_chart
run: |
LATEST_VERSION=$(curl -s https://signalfx.github.io/splunk-otel-collector-chart/index.yaml | yq e '.entries["splunk-otel-collector"][0].version')
CURRENT_VERSION=$(yq e '.version' helm-charts/splunk-otel-collector/Chart.yaml)
if [ "$LATEST_VERSION" != "$CURRENT_VERSION" ]; then
echo "New release needed, creating..."
echo "NEED_RELEASE=1" >> "$GITHUB_OUTPUT"
else
echo "No new release needed"
echo "NEED_RELEASE=0" >> "$GITHUB_OUTPUT"
fi
exit 0
- name: Configure Git
run: git config user.name "$GITHUB_ACTOR" && git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
if: ${{ steps.check_update_chart.outputs.NEED_RELEASE == 1 }}
- name: Install Helm
uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 #v4
with:
version: v4.1.1
if: ${{ steps.check_update_chart.outputs.NEED_RELEASE == 1 }}
- name: Set up chart dependencies
run: make render
if: ${{ steps.check_update_chart.outputs.NEED_RELEASE == 1 }}
- name: Generate Release Notes
run: make chlog-release-notes OUTPUT=file
if: ${{ steps.check_update_chart.outputs.NEED_RELEASE == 1 }}
- name: Run pre-commit to fix formatting
if: ${{ steps.check_update_chart.outputs.NEED_RELEASE == 1 }}
run: |
pip install pre-commit==4.5.1
pre-commit run --all-files || true
env:
SKIP: actionlint,render,go-fmt,go-lint,go-mod-tidy
- name: Run chart-releaser
uses: helm/chart-releaser-action@cae68fefc6b5f367a0275617c9f83181ba54714f # v1.7.0
with:
charts_dir: helm-charts
config: .github/workflows/configs/cr.yaml
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
if: ${{ steps.check_update_chart.outputs.NEED_RELEASE == 1 }}