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 }}