Skip to content

Commit 5d453f6

Browse files
authored
Merge pull request opendatahub-io#261 from DharmitD/odh-sync-inputs
Fixing GH workflow repo name and updating input descriptions
2 parents dfa32f7 + 268484c commit 5d453f6

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ on:
66
inputs:
77
src_branch:
88
default: 'v1.0.x'
9-
description: 'Source branch to build DSPO/DSP from'
9+
description: 'Source branch to build DSPO/DSP from (for example: v1.0.x)'
1010
required: true
1111
target_tag:
1212
default: 'vx.y.z'
13-
description: 'Target Image Tag'
13+
description: 'DSPO version tag to be selected to sync manifests from (for example: v1.0.0)'
1414
required: true
1515
jobs:
1616
send-pull-requests:
@@ -22,16 +22,16 @@ jobs:
2222
uses: actions/checkout@v2
2323
with:
2424
fetch-depth: 0
25-
ref: main
25+
ref: ${{ github.event.inputs.src_branch }}
2626
repository: opendatahub-io/data-science-pipelines-operator
2727
token: ${{ secrets.GITHUB_TOKEN }}
2828

2929
- name: Send pull-request
3030
run: |
31-
LATEST_TAG=$(git describe --tags --always --abbrev=0)
31+
TARGET_TAG=${{ github.event.inputs.target_tag }}
3232
REPOSITORY="dsp-developers/odh-manifests"
3333
FOLDER="bin/$REPOSITORY"
34-
BRANCH_NAME="chore-update-scripts-to-$LATEST_TAG"
34+
BRANCH_NAME="chore-update-scripts-to-$TARGET_TAG"
3535
3636
# Clone the remote repository and change working directory to the
3737
# folder it was cloned to.
@@ -59,18 +59,18 @@ jobs:
5959
6060
# Commit the changes and push the feature branch to origin
6161
git add .
62-
git commit -m "Update DSPO to $LATEST_TAG"
62+
git commit -m "Update DSPO to $TARGET_TAG"
6363
# Check if the branch exists and perform rebase if it does
6464
if git ls-remote --exit-code --heads origin $BRANCH_NAME; then
6565
git pull --rebase origin $BRANCH_NAME
6666
fi
6767
git push origin $BRANCH_NAME
6868
6969
gh pr create \
70-
--body "This is an automated PR to update Data Science Pipelines Operator manifests to $LATEST_TAG" \
71-
--title "Update DSP Operator manifests to $LATEST_TAG" \
70+
--body "This is an automated PR to update Data Science Pipelines Operator manifests to $TARGET_TAG" \
71+
--title "Update DSP Operator manifests to $TARGET_TAG" \
7272
--head "$BRANCH_NAME" \
7373
--base "master"
74-
--repo https://github.com/opendatahub-io/data-science-pipelines-operator
74+
--repo https://github.com/opendatahub-io/odh-manifests
7575
env:
7676
GH_TOKEN: ${{ secrets.ACCESS_TOKEN }}

0 commit comments

Comments
 (0)