diff --git a/.github/workflows/update-doc.yaml b/.github/workflows/update-doc.yaml index 156c0a7..8e6b6d3 100644 --- a/.github/workflows/update-doc.yaml +++ b/.github/workflows/update-doc.yaml @@ -29,8 +29,16 @@ jobs: rm -rf README.md cp /tmp/README.md README.md - uses: stefanzweifel/git-auto-commit-action@v4 - - - - - \ No newline at end of file + # 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 \ No newline at end of file