Skip to content

Commit

Permalink
update git commands
Browse files Browse the repository at this point in the history
  • Loading branch information
thr authored and thr committed Dec 7, 2023
1 parent 9d17ab9 commit 9e58225
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/gen-readme-values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 9e58225

Please sign in to comment.