Files
ah-annotations/action.yaml
T
volker.raschekandCopilot 6f174f4aac feat: add configurable chart-path input
Allow users to specify a custom path to Chart.yaml via the chart-path
input. The add-annotations.sh script reads the CHART_FILE environment
variable with a fallback to "Chart.yaml" for standalone usage.

Co-authored-by: Copilot <copilot@github.com>
2026-08-16 22:10:30 +02:00

60 lines
2.0 KiB
YAML

name: "ArtifactHub Annotations"
description: "Generate ArtifactHub changelog annotations from git commit history and add them to Chart.yaml"
inputs:
chart-path:
description: "Path to the Helm chart file"
default: "./Chart.yaml"
required: false
old-tag:
description: "Start tag for changelog generation. If not set, auto-detected from git tags."
required: false
default: ""
new-tag:
description: "End tag for changelog generation. If not set, auto-detected from git tags."
required: false
default: ""
yq-arch:
description: "Architecture of yq binary to download. If not set, auto-detected from system architecture."
required: false
default: ""
yq-os:
description: "Operating system of yq binary to download. If not set, auto-detected from system OS."
required: false
default: ""
yq-binary-name:
description: "Name of the yq binary to download. If not set, defaults to 'yq'."
required: false
default: "yq"
yq-download-url:
description: |
URL to download yq from. Name of the binary must be 'yq'. The distribution and architecture are automatically
detected if undefined. The distribution and architecture will we underscore separated in the URL, e.g. `yq_linux_amd64`
required: false
default: ""
yq-version:
description: "Version of yq to install"
required: false
default: "v4.44.6"
runs:
using: "composite"
steps:
- name: Install yq
shell: bash
env:
YQ_ARCH: ${{ inputs.yq-arch }}
YQ_BINARY_NAME: ${{ inputs.yq-binary-name }}
YQ_DOWNLOAD_URL: ${{ inputs.yq-download-url }}
YQ_OS: ${{ inputs.yq-os }}
YQ_VERSION: ${{ inputs.yq-version }}
run: "${GITHUB_ACTION_PATH}/install-yq.sh"
- name: Add ArtifactHub annotations
shell: bash
env:
CHART_FILE: ${{ inputs.chart-path }}
INPUT_OLD_TAG: ${{ inputs.old-tag }}
INPUT_NEW_TAG: ${{ inputs.new-tag }}
run: "${GITHUB_ACTION_PATH}/add-annotations.sh"