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