fix path logic #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Docs | |
on: | |
push: | |
branches: | |
- scripts/fern-structure | |
repository_dispatch: | |
types: [update_docs] | |
jobs: | |
update-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ZenML-docs repo | |
uses: actions/[email protected] | |
- name: Set up Python | |
uses: actions/[email protected] | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install PyYAML requests | |
- name: Download docs data | |
env: | |
ZENML_REPO_TOKEN: ${{ secrets.ZENML_REPO_TOKEN }} | |
run: | | |
curl -L \ | |
-H "Authorization: token $ZENML_REPO_TOKEN" \ | |
-H "Accept: application/vnd.github.v3+json" \ | |
https://api.github.com/repos/zenml-io/zenml/actions/artifacts/latest/zip \ | |
--output docs_data.zip | |
# - name: Process docs update | |
# run: | | |
# python scripts/process_docs_update.py \ | |
# --version ${{ github.event.client_payload.version }} | |
# - name: Commit and push changes | |
# run: | | |
# git config user.name "GitHub Actions Bot" | |
# git config user.email "<>" | |
# git add . | |
# git commit -m "Sync docs for version ${{ github.event.client_payload.version }}" || echo "No changes to commit" | |
# git push |