From 377273c4f37b89b70d2e3cfde3b2aba1033429cb Mon Sep 17 00:00:00 2001 From: Patryk Matuszak Date: Fri, 3 Jul 2026 13:04:50 +0200 Subject: [PATCH] Unconditional APP_ID and CLIENT_KEY --- ...ift-microshift-manage-versions-releases-commands.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ci-operator/step-registry/openshift/microshift/manage-versions-releases/openshift-microshift-manage-versions-releases-commands.sh b/ci-operator/step-registry/openshift/microshift/manage-versions-releases/openshift-microshift-manage-versions-releases-commands.sh index 901695d29cc33..5bb7b7ddbff52 100644 --- a/ci-operator/step-registry/openshift/microshift/manage-versions-releases/openshift-microshift-manage-versions-releases-commands.sh +++ b/ci-operator/step-registry/openshift/microshift/manage-versions-releases/openshift-microshift-manage-versions-releases-commands.sh @@ -53,16 +53,18 @@ mkdir -p ./_output # sudo to allow dnf to update the cache sudo -E ./scripts/release-notes/gen_gh_releases.sh rhocp --ci-job-branch "${BRANCH}" query --output /tmp/releases.json +set +x +APP_ID="\$(cat /tmp/app_id)" +export APP_ID +export CLIENT_KEY=/tmp/key.pem +set -x + # gen_gh_release.sh rhocp is expected to only run against branches synced the main to not duplicate efforts. # For branches synced with main see https://github.com/openshift/microshift/issues/1239. # Otherwise, it exits with 0 and does not create /tmp/releases.json file. # We need to skip creation of GH releases and proceed to common_versions.sh update. if [ -f /tmp/releases.json ]; then cat /tmp/releases.json - - APP_ID="\$(cat /tmp/app_id)" - export APP_ID - export CLIENT_KEY=/tmp/key.pem ./scripts/release-notes/gen_gh_releases.sh rhocp --ci-job-branch "${BRANCH}" publish ${DRY_RUN} --input /tmp/releases.json fi