Skip to content

chore: Update docs

chore: Update docs #79

name: Auto Update Docs
on:
push:
branches:
- release-please-*
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_CQ_BOT }}
- name: Update Docs
run: |
docker run --rm --volume "$(pwd):/helm-docs" -u "$(id -u)" jnorwood/helm-docs:v1.11.0
- name: Get component from branch name
uses: actions/github-script@v7
id: component
with:
result-encoding: string
script: |
const lastPartOfBranch = context.ref.split('-').pop();
return lastPartOfBranch;
- uses: stefanzweifel/git-auto-commit-action@v5
with:
file_pattern: charts/${{ steps.component.outputs.result }}/README.md
commit_message: "chore: Update docs"