Skip to content

Commit 621a69d

Browse files
committed
Make odh org an input.
Signed-off-by: Humair Khan <[email protected]>
1 parent 5d453f6 commit 621a69d

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

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

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ on:
1212
default: 'vx.y.z'
1313
description: 'DSPO version tag to be selected to sync manifests from (for example: v1.0.0)'
1414
required: true
15+
odh_manifest_org:
16+
default: 'opendatahub-io'
17+
description: 'The GH org for odh-manifest.'
18+
required: true
19+
1520
jobs:
1621
send-pull-requests:
1722
runs-on: ubuntu-latest
@@ -22,13 +27,13 @@ jobs:
2227
uses: actions/checkout@v2
2328
with:
2429
fetch-depth: 0
25-
ref: ${{ github.event.inputs.src_branch }}
30+
ref: ${{ inputs.src_branch }}
2631
repository: opendatahub-io/data-science-pipelines-operator
2732
token: ${{ secrets.GITHUB_TOKEN }}
2833

2934
- name: Send pull-request
3035
run: |
31-
TARGET_TAG=${{ github.event.inputs.target_tag }}
36+
TARGET_TAG=${{ inputs.target_tag }}
3237
REPOSITORY="dsp-developers/odh-manifests"
3338
FOLDER="bin/$REPOSITORY"
3439
BRANCH_NAME="chore-update-scripts-to-$TARGET_TAG"
@@ -46,7 +51,7 @@ jobs:
4651
git config user.email "[email protected]"
4752
git config user.name "dsp-developers"
4853
49-
git remote add upstream https://github.com/opendatahub-io/odh-manifests.git
54+
git remote add upstream https://github.com/{{ inputs.odh_manifest_org }}/odh-manifests.git
5055
git fetch upstream
5156
5257
# Create a new feature branch for the changes.
@@ -71,6 +76,4 @@ jobs:
7176
--title "Update DSP Operator manifests to $TARGET_TAG" \
7277
--head "$BRANCH_NAME" \
7378
--base "master"
74-
--repo https://github.com/opendatahub-io/odh-manifests
75-
env:
76-
GH_TOKEN: ${{ secrets.ACCESS_TOKEN }}
79+
--repo https://github.com/{{ inputs.odh_manifest_org }}/odh-manifests

0 commit comments

Comments
 (0)