Reviewed-on: #4 Co-authored-by: Timo Behrendt <t.behrendt@t00n.de> Co-committed-by: Timo Behrendt <t.behrendt@t00n.de>
20 lines
566 B
YAML
20 lines
566 B
YAML
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
|