name: Release Helm chart
on:
  workflow_dispatch:

jobs:
  release-beyla-helm-chart:
    uses: grafana/helm-charts/.github/workflows/update-helm-repo.yaml@main
    with:
      charts_dir: charts/beyla
      cr_configfile: .github/configs/cr.yml
      ct_configfile: .github/configs/ct.yml
    secrets:
      # values are created in https://github.com/organizations/grafana/settings/apps/grafana-beyla-release
      # and copied to a repository secret
      github_app_id: ${{ secrets.BEYLA_RELEASE_APP_ID }}
      github_app_pem: ${{ secrets.BEYLA_RELEASE_APP_PEM }}