File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
2+ # Manual release steps for reference: https://github.com/openshift/backplane-cli/blob/main/docs/release.md
3+
24set -e
35
6+ REPO_URL=" https://github.com/openshift/backplane-cli.git"
7+
48# Extract version from VERSION.md
59VERSION=$( grep ' Version:' VERSION.md | awk ' {print $2}' )
610
2024git config user.name " CI release"
2125git config user.email " ci-test@release.com"
2226
27+ # Ensure the remote repository 'upstream' is set to the correct URL
28+ if git remote | grep -iq ' upstream' ; then
29+ current_url=$( git remote get-url upstream)
30+ if [ " $current_url " != " $REPO_URL " ]; then
31+ git remote set-url upstream $REPO_URL
32+ fi
33+ else
34+ git remote add upstream $REPO_URL
35+ fi
36+
2337# Ensure working on the latest main
2438git fetch upstream
2539git checkout upstream/main
You can’t perform that action at this time.
0 commit comments