Skip to content

Commit 6701c90

Browse files
committed
fix(bundle): Modify target repo for the PR opened when publishing
Signed-off-by: Mat Kowalski <mko@redhat.com>
1 parent d8dab14 commit 6701c90

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/publish-operatorhub-on-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ jobs:
124124
github-token: ${{ secrets.OPERATORHUB_TOKEN }}
125125
script: |
126126
const { data: pr } = await github.rest.pulls.create({
127-
owner: 'k8s-operatorhub',
127+
owner: '${{ github.event.inputs.community_operators_midstream_repo_org}}',
128128
repo: 'community-operators',
129129
title: 'operator ${{ env.OPERATOR_NAME }} (${{ steps.version.outputs.version }})',
130130
head: '${{ env.BRANCH_NAME }}',
131-
base: 'main',
131+
base: 'k8s-operatorhub/${{ github.event.inputs.operator_hub_repo }}:main',
132132
body: `## kubernetes-nmstate-operator version ${{ steps.version.outputs.version }}
133133
134134
This PR adds version ${{ steps.version.outputs.version }} of the kubernetes-nmstate-operator to OperatorHub.

.github/workflows/publish-operatorhub.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@ jobs:
141141
github-token: ${{ secrets.OPERATORHUB_TOKEN }}
142142
script: |
143143
const { data: pr } = await github.rest.pulls.create({
144-
owner: 'k8s-operatorhub',
145-
repo: '${{ github.event.inputs.operator_hub_repo }}',
144+
owner: '${{ github.event.inputs.community_operators_midstream_repo_org}}',
145+
repo: 'community-operators',
146146
title: 'operator ${{ env.OPERATOR_NAME }} (${{ env.VERSION }})',
147147
head: '${{ env.BRANCH_NAME }}',
148-
base: 'main',
148+
base: 'k8s-operatorhub/${{ github.event.inputs.operator_hub_repo }}:main',
149149
body: `## kubernetes-nmstate-operator version ${{ env.VERSION }}
150150
151151
This PR adds version ${{ env.VERSION }} of the kubernetes-nmstate-operator to OperatorHub.

0 commit comments

Comments
 (0)