initial
This commit is contained in:
@@ -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
|
||||
@@ -0,0 +1,19 @@
|
||||
name: "Extract namespace from repo name"
|
||||
description: "Extracts the namespace name from the repo name, based on the convention of k_<namespace-name>"
|
||||
inputs:
|
||||
repo:
|
||||
description: 'The repo name, get it from "github.repository"'
|
||||
required: true
|
||||
outputs:
|
||||
namespace:
|
||||
description: "The namespace name"
|
||||
value: ${{ steps.extract.outputs.suffix }}
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- id: extract
|
||||
shell: bash
|
||||
run: |
|
||||
full_repo="${{ inputs.repo }}"
|
||||
suffix="${full_repo##*k_}"
|
||||
echo "suffix=$suffix" >> $GITHUB_OUTPUT
|
||||
@@ -0,0 +1,26 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- ".gitea/actions/"
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: Release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Increment tag
|
||||
id: tag
|
||||
uses: https://gitea.t000-n.de/t.behrendt/conventional-semantic-git-tag-increment@ef0c23189db33220a73022d8c29a27709d0df440 # 0.1.32
|
||||
with:
|
||||
token: ${{ secrets.GITEA_TOKEN }}
|
||||
- name: Push tag
|
||||
uses: https://gitea.t000-n.de/t.behrendt/actions/release-git-tag@47a1c635cfc76cfb4eeee3db0d0b89bf19007c7a # 0.2.3
|
||||
with:
|
||||
tag: ${{ steps.tag.outputs.new-tag }}
|
||||
Reference in New Issue
Block a user