Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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

Comment thread
coderabbitai[bot] marked this conversation as resolved.
# 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

Expand Down