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 2fc8525 commit 38af67b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/update-refs-in-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ 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
Expand All @@ -55,8 +53,6 @@ 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:
Expand All @@ -68,7 +64,7 @@ jobs:
git config user.name ${{ github.actor }}
git config user.email ${{ github.actor }}@users.noreply.github.com
BRANCH_NAME="SDK/python/${{ env.SHORT_SHA }}"
git add .
git add src/pages/content/docs/sdks/skyflow-python/
# Check if there are changes to commit
if [[ -n "$(git status --porcelain)" ]]; then
Expand Down

0 comments on commit 38af67b

Please sign in to comment.