Skip to content

Commit 40ce94c

Browse files
committed
Allow odh sync to fork from user fork.
Signed-off-by: Humair Khan <[email protected]>
1 parent 5bd0f8c commit 40ce94c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/odh-manifests-PR-sync.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,19 @@ jobs:
3232
git clone \
3333
--depth=1 \
3434
--branch=master \
35-
https://opendatahub-io:${{ secrets.ACCESS_TOKEN }}@github.com/$REPOSITORY \
35+
https://dsp-developers:${{ secrets.ACCESS_TOKEN }}@github.com/$REPOSITORY \
3636
$FOLDER
3737
cd $FOLDER
3838
3939
# Setup the committers identity.
4040
git config user.email "[email protected]"
4141
git config user.name "dsp-developers"
4242
43+
git remote add upstream https://github.com/opendatahub-io/odh-manifests.git
44+
git fetch upstream
45+
4346
# Create a new feature branch for the changes.
44-
git checkout -b $BRANCH_NAME
47+
git checkout -B $BRANCH_NAME upstream/master
4548
echo "Created branch: $BRANCH_NAME"
4649
4750
# Copy DSPO manifests. Using rsync to allow filtering of paths/files (e.g. like a .gitignore, hidden files, etc)
@@ -62,5 +65,6 @@ jobs:
6265
--title "Update DSP Operator manifests to $LATEST_TAG" \
6366
--head "$BRANCH_NAME" \
6467
--base "master"
68+
--repo https://github.com/opendatahub-io/data-science-pipelines-operator
6569
env:
6670
GH_TOKEN: ${{ secrets.ACCESS_TOKEN }}

0 commit comments

Comments
 (0)