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:
19
.gitea/actions/extract-chart-name-from-repo-name/action.yaml
Normal file
19
.gitea/actions/extract-chart-name-from-repo-name/action.yaml
Normal 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
|
||||
Reference in New Issue
Block a user