From 9e582256a2fe1adb7de101146df432143cdd84e0 Mon Sep 17 00:00:00 2001 From: thr Date: Thu, 7 Dec 2023 08:49:08 +0100 Subject: [PATCH] update git commands --- .github/workflows/gen-readme-values.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gen-readme-values.yml b/.github/workflows/gen-readme-values.yml index 1e777f1..7fa2f49 100644 --- a/.github/workflows/gen-readme-values.yml +++ b/.github/workflows/gen-readme-values.yml @@ -22,15 +22,22 @@ jobs: with: fetch-depth: 0 + - name: Git clone + run: | + git config --global user.name "${{ github.event.head_commit.committer.name }}" + git config --global user.email "${{ github.event.head_commit.committer.email }}" + git clone git@github.com:SoftwareAG/webmethods-helm-charts.git -b ${{ github.ref_name }} + + - name: Generate Helm README Documentation with jnorwood run: | + cd webmethods-helm-charts/ sudo docker run --rm --volume "$(pwd):/helm-docs" -u $(id -u) jnorwood/helm-docs:latest - name: Push new generated README run: | - git config --global user.name "${{ github.event.head_commit.committer.name }}" - git config --global user.email "${{ github.event.head_commit.committer.email }}" + cd webmethods-helm-charts/ git add . - git commit -am "${{ github.event.head_commit.message }} // update README from values.yaml" + git commit -am "${{ github.event.head_commit.message }} and updating helm/README.me from values.yaml" git branch -M ${{ github.ref_name }} git push -f origin ${{ github.ref_name }}