Skip to content

Commit ac72731

Browse files
authored
Merge pull request #4642 from dlabrecq/next3
Adds a release-all usage message to console
2 parents a556225 + c16f86b commit ac72731

File tree

2 files changed

+23
-12
lines changed

2 files changed

+23
-12
lines changed

scripts/release-all.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ function defaults() {
88
process.env.DEBUG = 'false';
99
}
1010

11+
function usage() {
12+
console.log(`To release the koku-ui, use this script to first update koku-ui stage/prod branches.`);
13+
console.log(`This script will then fetch the latest SHA refs from those branches and update app-interface.`);
14+
console.log(`Branch PRs are created in the koku-ui repo and MRs will be created in your app-interface fork.\n`);
15+
}
16+
1117
async function setAppInterfaceConfig() {
1218
const { appInterfaceEnv } = await inquirer.prompt([
1319
{
@@ -74,6 +80,8 @@ async function setConfig() {
7480

7581
async function run() {
7682
defaults();
83+
usage();
84+
7785
await setAppInterfaceConfig();
7886
await setConfig();
7987

scripts/release-app-interface.sh

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -105,18 +105,21 @@ createDeploymentUpdates()
105105
{
106106
mkdir -p $TMP_DIR
107107

108-
if [ "$UPDATE_HCCM_STAGE" = 'true' ]; then
109-
echo "${KOKU_UI_HCCM}: Stage deployment" >> $DEPLOYMENTS_FILE
110-
fi
111-
if [ "$UPDATE_HCCM_PROD" = 'true' ]; then
112-
echo "${KOKU_UI_HCCM}: Prod deployment" >> $DEPLOYMENTS_FILE
113-
fi
114-
if [ "$UPDATE_ROS_STAGE" = 'true' ]; then
115-
echo "${KOKU_UI_ROS}: Stage deployment" >> $DEPLOYMENTS_FILE
116-
fi
117-
if [ "$UPDATE_ROS_PROD" = 'true' ]; then
118-
echo "${KOKU_UI_ROS}: Prod deployment" >> $DEPLOYMENTS_FILE
119-
fi
108+
{
109+
if [ "$UPDATE_HCCM_STAGE" = "true" ]; then
110+
echo "${KOKU_UI_HCCM}: Stage deployment"
111+
fi
112+
if [ "$UPDATE_HCCM_PROD" = "true" ]; then
113+
echo "${KOKU_UI_HCCM}: Prod deployment"
114+
fi
115+
if [ "$UPDATE_ROS_STAGE" = "true" ]; then
116+
echo "${KOKU_UI_ROS}: Stage deployment"
117+
fi
118+
if [ "$UPDATE_ROS_PROD" = "true" ]; then
119+
echo "${KOKU_UI_ROS}: Prod deployment"
120+
fi
121+
} > "$DEPLOYMENTS_FILE"
122+
120123
DEPLOYMENTS=`cat $DEPLOYMENTS_FILE`
121124
}
122125

0 commit comments

Comments
 (0)