6
6
inputs :
7
7
src_branch :
8
8
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) '
10
10
required : true
11
11
target_tag :
12
12
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) '
14
14
required : true
15
15
jobs :
16
16
send-pull-requests :
@@ -22,16 +22,16 @@ jobs:
22
22
uses : actions/checkout@v2
23
23
with :
24
24
fetch-depth : 0
25
- ref : main
25
+ ref : ${{ github.event.inputs.src_branch }}
26
26
repository : opendatahub-io/data-science-pipelines-operator
27
27
token : ${{ secrets.GITHUB_TOKEN }}
28
28
29
29
- name : Send pull-request
30
30
run : |
31
- LATEST_TAG=$(git describe --tags --always --abbrev=0)
31
+ TARGET_TAG=${{ github.event.inputs.target_tag }}
32
32
REPOSITORY="dsp-developers/odh-manifests"
33
33
FOLDER="bin/$REPOSITORY"
34
- BRANCH_NAME="chore-update-scripts-to-$LATEST_TAG "
34
+ BRANCH_NAME="chore-update-scripts-to-$TARGET_TAG "
35
35
36
36
# Clone the remote repository and change working directory to the
37
37
# folder it was cloned to.
@@ -59,18 +59,18 @@ jobs:
59
59
60
60
# Commit the changes and push the feature branch to origin
61
61
git add .
62
- git commit -m "Update DSPO to $LATEST_TAG "
62
+ git commit -m "Update DSPO to $TARGET_TAG "
63
63
# Check if the branch exists and perform rebase if it does
64
64
if git ls-remote --exit-code --heads origin $BRANCH_NAME; then
65
65
git pull --rebase origin $BRANCH_NAME
66
66
fi
67
67
git push origin $BRANCH_NAME
68
68
69
69
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 " \
72
72
--head "$BRANCH_NAME" \
73
73
--base "master"
74
- --repo https://github.com/opendatahub-io/data-science-pipelines-operator
74
+ --repo https://github.com/opendatahub-io/odh-manifests
75
75
env :
76
76
GH_TOKEN : ${{ secrets.ACCESS_TOKEN }}
0 commit comments