# k_deploy_actions Reusable actions for the k\_ repositories. ## Available Actions ### Extract Chart Name from Repository Name Path: `./.gitea/actions/extract-chart-name-from-repo-name` Extracts the chart name from repository names using the `helm-` convention. #### Usage ```yaml - name: Extract chart name id: chart_name uses: https://gitea.t000-n.de/t.behrendt/.gitea/actions/extract-chart-name-from-repo-name with: repo: ${{ github.repository_name }} # e.g. "helm-my-service" ``` #### Inputs | Parameter | Description | Required | | --------- | ------------------------------------------- | -------- | | `repo` | Full repository name (e.g. `helm-my-chart`) | Yes | #### Outputs | Output | Description | | ------------ | ----------------------------------------------------------- | | `chart-name` | Extracted chart name (e.g. `my-chart` from `helm-my-chart`) | #### Example For `helm-user-service`, this action returns `user-service`. ### Extract Namespace from Repository Name Path: `./.gitea/actions/extract-namespace-from-repo-name` Extracts the namespace from repository names using the `k_` convention. #### Usage ```yaml - name: Extract namespace id: namespace uses: ./.gitea/actions/extract-namespace-from-repo-name with: repo: ${{ github.repository_name }} # e.g. "k_platform-service" ``` #### Inputs | Parameter | Description | Required | | --------- | ------------------------------------------- | -------- | | `repo` | Repository name (e.g. `k_platform-service`) | Yes | #### Outputs | Output | Description | | ----------- | ----------------------------------------------------------------------- | | `namespace` | Extracted namespace (e.g. `platform-service` from `k_platform-service`) | #### Example For `k_core-apps`, this action returns `core-apps`.