Skip to content

Commit

Permalink
Update update-refs-in-docs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kamal-skyflow authored Dec 7, 2023
1 parent 78750e7 commit 4c7cadf
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/update-refs-in-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,10 @@ jobs:
# Create a new branch in skyflow-docs
cd $GITHUB_WORKSPACE
git remote add skyflow-docs https://${TOKEN}@github.com/${REPO_OWNER}/${REPO_NAME}.git
# git fetch skyflow-docs main
git fetch skyflow-docs sdk-test
git fetch skyflow-docs main
BRANCH_NAME="SDK-${{ env.SHORT_SHA }}/react-native"
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
git checkout -b $BRANCH_NAME skyflow-docs/sdk-test
git checkout -b $BRANCH_NAME skyflow-docs/main
cp -r ../../refs/* src/pages/content/docs/sdks/skyflow-react-native/
- name: Push files and raise a PR
Expand All @@ -69,8 +67,7 @@ jobs:
git commit -m "SDK-${{ env.SHORT_SHA }} Added React Native SDK references"
git push skyflow-docs $BRANCH_NAME
# Raise a pull request
# BASE_BRANCH="main"
BASE_BRANCH="sdk-test"
BASE_BRANCH="main"
BRANCH_NAME="SDK-${{ env.SHORT_SHA }}/react-native"
TITLE="SDK-${{ env.SHORT_SHA }}/react-native: Updated react-native SDK references"
BODY="This pull request adds the latest React Native SDK references. Commit id for reference: $GITHUB_SHA"
Expand Down

0 comments on commit 4c7cadf

Please sign in to comment.