From 2f3c70ed7b6ab91c1fab79faf7fe077cc6afa6bc Mon Sep 17 00:00:00 2001 From: kamal-skyflow <134511991+kamal-skyflow@users.noreply.github.com> Date: Thu, 7 Dec 2023 18:18:44 +0530 Subject: [PATCH] Update update-refs-in-docs.yml --- .github/workflows/update-refs-in-docs.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update-refs-in-docs.yml b/.github/workflows/update-refs-in-docs.yml index 9938358..4fb0675 100644 --- a/.github/workflows/update-refs-in-docs.yml +++ b/.github/workflows/update-refs-in-docs.yml @@ -44,10 +44,12 @@ 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 main + git fetch skyflow-docs sdk-test 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/main + git checkout -b $BRANCH_NAME skyflow-docs/sdk-test cp -r ../../refs/* src/pages/content/docs/sdks/skyflow-react-native/ - name: Push files and raise a PR @@ -64,10 +66,11 @@ jobs: # Check if there are changes to commit if [[ -n "$(git status --porcelain)" ]]; then - git commit -m "Added React Native SDK references" + 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="main" + BASE_BRANCH="sdk-test" 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"