From 2fc85252e1e7c01e0a6c12e06760f08a4cba71f7 Mon Sep 17 00:00:00 2001 From: kamal-skyflow <134511991+kamal-skyflow@users.noreply.github.com> Date: Wed, 27 Dec 2023 09:59:24 +0530 Subject: [PATCH] DEX-453 Update update-refs-in-docs.yml --- .github/workflows/update-refs-in-docs.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-refs-in-docs.yml b/.github/workflows/update-refs-in-docs.yml index 7429fac..b6695c2 100644 --- a/.github/workflows/update-refs-in-docs.yml +++ b/.github/workflows/update-refs-in-docs.yml @@ -12,6 +12,7 @@ jobs: - name: Checkout code uses: actions/checkout@v2 with: + token: ${{ secrets.PAT_ACTIONS }} ref: DEX-453 fetch-depth: 0 persist-credentials: false @@ -21,8 +22,7 @@ jobs: run: | python -m pip install --upgrade pip pip install setuptools wheel twine - pip install docstring-parser - pip install aiohttp pyjwt + pip install docstring-parser aiohttp pyjwt - name: Generate Python SDK references run: | @@ -35,6 +35,10 @@ jobs: cd skyflow-python/skyflow-python/ rm -r docs/ echo "SHORT_SHA=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_ENV + cd ../.. + cd refs/ + ls + - name: Create a branch in skyflow-docs env: TOKEN: ${{ secrets.PAT_ACTIONS }} @@ -51,6 +55,9 @@ jobs: git remote set-url --push skyflow-docs https://${ACTOR}:${TOKEN}@github.com/${REPO_OWNER}/${REPO_NAME}.git git checkout -b $BRANCH_NAME skyflow-docs/main cp -r ../../refs/* src/pages/content/docs/sdks/skyflow-python/ + cd src/pages/content/docs/sdks/skyflow-python/ + ls + - name: Push files and raise a PR env: TOKEN: ${{ secrets.PAT_ACTIONS }}