Skip to content

Commit

Permalink
add-action-to-push-helm-chart-to-docs (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
mendonk authored Nov 14, 2023
1 parent 73d2cf7 commit 0c8897d
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/update-doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,16 @@ jobs:
rm -rf README.md
cp /tmp/README.md README.md
- uses: stefanzweifel/git-auto-commit-action@v4





# Push README.md to the langstream/documentation repository
- name: Push to docs repo
env:
DOCS_REPO_TOKEN: ${{ secrets.ADD_TO_PROJECT_PAT }} # Use the PAT stored in secrets
run: |
git clone https://github.com/langstream/documentation.git
cd documentation
rm -rf helm.md
cp /tmp/README.md helm.md
sed -i 's/# LangStream Helm Charts Repository/# LangStream Helm Chart Values/' helm.md
git add helm.md
git commit -m "Update helm documentation from charts repository"
git push https://${DOCS_REPO_TOKEN}@github.com/langstream/documentation.git HEAD:main

0 comments on commit 0c8897d

Please sign in to comment.