feat: add helm-chart name extraction action (#4)

Reviewed-on: #4
Co-authored-by: Timo Behrendt <t.behrendt@t00n.de>
Co-committed-by: Timo Behrendt <t.behrendt@t00n.de>
This commit was merged in pull request #4.
This commit is contained in:
2025-09-09 10:14:37 +02:00
committed by t.behrendt
parent f5862333b0
commit 9ee7ae229b
2 changed files with 66 additions and 7 deletions

View File

@@ -0,0 +1,19 @@
name: Extract chart name from repo name
description: Extracts the chart name from the repo name, based on the convention of helm-<chart-name>
inputs:
repo:
description: The full repository name (e.g., "helm-my-chart")
required: true
outputs:
chart-name:
description: The extracted chart name
value: ${{ steps.extract.outputs.suffix }}
runs:
using: "composite"
steps:
- id: extract
shell: bash
run: |
full_repo="${{ inputs.repo }}"
suffix="${full_repo##*helm-}"
echo "suffix=$suffix" >> $GITHUB_OUTPUT