File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ var=${MINOR_RELEASE_BRANCH} yq -i '.release_branch=env(var)' $tmp_config
39
39
var=${MINOR_RELEASE_TAG} yq -i ' .target_version_tag=env(var)' $tmp_config
40
40
var=${PREVIOUS_RELEASE_TAG} yq -i ' .previous_release_tag=env(var)' $tmp_config
41
41
42
-
43
42
cat << "EOF " > $body_txt
44
43
This is an automated PR to prep Data Science Pipelines Operator for release.
45
44
```yaml
@@ -52,7 +51,6 @@ sed -i "/<CONFIG_HERE>/{
52
51
r ${tmp_config}
53
52
}" $body_txt
54
53
55
-
56
54
pr_url=$( gh pr create \
57
55
--repo https://github.com/${DSPO_REPOSITORY_FULL} \
58
56
--body-file $body_txt \
@@ -61,6 +59,4 @@ pr_url=$(gh pr create \
61
59
--label " release-automation" \
62
60
--base " ${MINOR_RELEASE_BRANCH} " )
63
61
64
-
65
-
66
62
echo " ::notice:: PR successfully created: ${pr_url} "
Original file line number Diff line number Diff line change @@ -96,14 +96,14 @@ jobs:
96
96
git commit -m "Update DSPO to $TARGET_TAG"
97
97
git push origin $BRANCH_NAME -f
98
98
99
- gh pr create \
99
+ pr_url=$( gh pr create \
100
100
--repo https://github.com/${{ inputs.odh_manifest_org }}/odh-manifests \
101
101
--body "This is an automated PR to update Data Science Pipelines Operator manifests to $TARGET_TAG" \
102
102
--title "Update DSP Operator manifests to $TARGET_TAG" \
103
103
--head "${{ env.GH_USER_NAME}}:$BRANCH_NAME" \
104
- --base "master"
104
+ --base "master")
105
105
106
- echo "::notice:: Changes detected in manifests, PR To ODH-Manifest Repo created. "
106
+ echo "::notice:: Changes detected in manifests, PR To ODH-Manifest Repo created: ${pr_url} "
107
107
108
108
else
109
109
echo "::notice:: Changes No changes to manifests requested, no pr required to odh-manifests."
Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ jobs:
127
127
name : checkout
128
128
with :
129
129
token : ${{ secrets.DSP_DEVS_ACCESS_TOKEN }}
130
+ ref : ${{ env.MINOR_RELEASE_BRANCH }}
130
131
- name : generate pr
131
132
env :
132
133
GH_TOKEN : ${{ secrets.DSP_DEVS_ACCESS_TOKEN }}
You can’t perform that action at this time.
0 commit comments