From 4409c45df37418a482ae80e97ab0db81e0fc6ea2 Mon Sep 17 00:00:00 2001 From: shivaccuknox <150668714+shivaccuknox@users.noreply.github.com> Date: Mon, 1 Jul 2024 08:53:51 +0530 Subject: [PATCH] (fix) Using a github app to push helm charts (#201) * - Using github app to push helm charts * - For manually testing the actions --- .github/workflows/stable-release.yaml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/stable-release.yaml b/.github/workflows/stable-release.yaml index 0f7b0feb..2d32b4cf 100644 --- a/.github/workflows/stable-release.yaml +++ b/.github/workflows/stable-release.yaml @@ -3,10 +3,7 @@ name: Stable release -on: - create: - tags: - - "v*" +on: workflow_dispatch permissions: read-all @@ -48,11 +45,18 @@ jobs: - name: Install Helm uses: azure/setup-helm@v4 + - name: Generate a token + id: generate-token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ vars.ACTIONS_APP_ID }} + private-key: ${{ secrets.ACTIONS_APP_PRIVATE_KEY }} + - name: Publish Helm chart uses: stefanprodan/helm-gh-pages@master with: # Access token which can push to a different repo in the same org - token: ${{ secrets.GH_ACCESS_TOKEN }} + token: ${{ steps.generate-token.outputs.token }} charts_dir: deployments/ # repo where charts would be published owner: 5GSEC