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 8a24126 commit 2f3c70e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/update-refs-in-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit 2f3c70e

Please sign in to comment.