From 02d05490add35a2fc12d117b48c0994324300e6b Mon Sep 17 00:00:00 2001
From: Goeran Poehner <goeran.poehner@gmail.com>
Date: Wed, 6 Oct 2021 18:53:52 +0200
Subject: [PATCH] Adding manual wflow execution

---
 .github/workflows/manual.yaml  | 24 ++++++++++++++++++++++++
 .github/workflows/release.yaml |  3 ---
 2 files changed, 24 insertions(+), 3 deletions(-)
 create mode 100644 .github/workflows/manual.yaml

diff --git a/.github/workflows/manual.yaml b/.github/workflows/manual.yaml
new file mode 100644
index 00000000..b3d7ccd3
--- /dev/null
+++ b/.github/workflows/manual.yaml
@@ -0,0 +1,24 @@
+name: Manual release helm chart
+
+on:
+  workflow_dispatch:
+
+jobs:
+  release:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v2
+        with:
+          fetch-depth: 0
+      - name: Configure Git
+        run: |
+          git config user.name "$GITHUB_ACTOR"
+          git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
+      - name: Add dependencies
+        run: |
+          helm repo add groundhog2k https://groundhog2k.github.io/helm-charts
+      - name: Run Release
+        uses: helm/chart-releaser-action@v1.2.1
+        env:
+          CR_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index 6d4e5c1b..4af7e0bd 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -19,9 +19,6 @@ jobs:
         run: |
           git config user.name "$GITHUB_ACTOR"
           git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
-      - name: Add dependencies
-        run: |
-          helm repo add groundhog2k https://groundhog2k.github.io/helm-charts
       - name: Run Release
         uses: helm/chart-releaser-action@v1.2.1
         env:
-- 
GitLab