Skip to content

Commit

Permalink
DEX-453 Update update-refs-in-docs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kamal-skyflow authored Dec 27, 2023
1 parent 330d300 commit 2fc8525
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/update-refs-in-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand All @@ -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 }}
Expand All @@ -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 }}
Expand Down

0 comments on commit 2fc8525

Please sign in to comment.