Skip to content

Commit eeb6322

Browse files
committed
ci: fix OLM workflow opening a PR
1 parent f64258a commit eeb6322

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/olm.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ jobs:
179179
# RABBITMQ_CI_EMAIL: secret_rabbitmq/kv/Shared-Shared-RabbitMQ%2Frabbitmq-ci/details
180180
### operators/rabbitmq-cluster-operator
181181
GH_PROMPT_DISABLED: 1
182-
GH_TOKEN: ${{ github.token }}
182+
GH_TOKEN: ${{ secrets.RABBITMQ_CI_TOKEN }}
183183
run: |
184184
git config user.name "rabbitmq-ci"
185185
git config user.email ${{ secrets.RABBITMQ_CI_EMAIL }}
@@ -190,6 +190,7 @@ jobs:
190190
cp -v -fR olm-package-ci/* ./operators/rabbitmq-cluster-operator/"$BUNDLE_VERSION"/
191191
git add operators/rabbitmq-cluster-operator
192192
git commit -s -m "RabbitMQ Cluster Operator release $BUNDLE_VERSION"
193+
git push --set-upstream origin "rabbitmq-cluster-operator-$BUNDLE_VERSION"
193194
194195
gh pr create --title "operator rabbitmq-cluster-operator (${{ env.BUNDLE_VERSION }})" \
195196
--body "Update operator rabbitmq-cluster-operator (${{ needs.test-olm-package.outputs.olm_package_version }})" \
@@ -219,7 +220,7 @@ jobs:
219220
BUNDLE_VERSION: ${{ needs.test-olm-package.outputs.olm_package_version }}
220221
# RABBITMQ_CI_EMAIL: secret_rabbitmq/kv/Shared-Shared-RabbitMQ%2Frabbitmq-ci/details
221222
GH_PROMPT_DISABLED: 1
222-
GH_TOKEN: ${{ github.token }}
223+
GH_TOKEN: ${{ secrets.RABBITMQ_CI_TOKEN }}
223224
run: |
224225
git config user.name "rabbitmq-ci"
225226
git config user.email ${{ secrets.RABBITMQ_CI_EMAIL }}
@@ -230,6 +231,7 @@ jobs:
230231
cp -v -fR olm-package-ci/* ./operators/rabbitmq-cluster-operator/"$BUNDLE_VERSION"/
231232
git add operators/rabbitmq-cluster-operator
232233
git commit -s -m "RabbitMQ Cluster Operator release $BUNDLE_VERSION"
234+
git push --set-upstream origin "rabbitmq-cluster-operator-$BUNDLE_VERSION"
233235
234236
gh pr create --title "operator rabbitmq-cluster-operator (${{ env.BUNDLE_VERSION }})" \
235237
--body "Update operator rabbitmq-cluster-operator (${{ needs.test-olm-package.outputs.olm_package_version }})" \

0 commit comments

Comments
 (0)