Skip to content

Commit

Permalink
chore: Update docs for only relevant chart based on branch (#501)
Browse files Browse the repository at this point in the history
Otherwise release PRs might have docs from the other chart #500
  • Loading branch information
erezrokah authored Dec 6, 2024
1 parent e5a7d3a commit 23f66a1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/auto_update_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ jobs:
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"

0 comments on commit 23f66a1

Please sign in to comment.