Skip to content

Commit a34b034

Browse files
author
nianiB9
committed
retrieving instance URL from config
1 parent fef7396 commit a34b034

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

examples/Maestro/eg001TriggerWorkflow.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ echo ""
142142

143143
instance_url=$(grep '"instance_url":' $response | sed -n 's/.*"instance_url": "\([^"]*\)".*/\1/p')
144144
decoded_instance_url=$(echo $instance_url | sed 's/\\u0026/\&/g')
145+
echo "$decoded_instance_url" > config/INSTANCE_URL
146+
145147
echo ""
146148
echo "Use this URL to complete the workflow steps:"
147149
echo $decoded_instance_url

examples/Maestro/eg002EmbedWorkflow.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ if [[ $SHELL != *"bash"* ]]; then
77
exit 1
88
fi
99

10-
# Step 1: Check that the workflow ID exists
11-
workflow_created=$(cat config/WORKFLOW_ID)
12-
if [ -z "$workflow_created" ]; then
13-
bash ./examples/Maestro/utils.sh
14-
fi
15-
1610
#check that create workflow script ran successfully
1711
workflow_created=$(cat config/WORKFLOW_ID)
1812
if [ -z "$workflow_created" ]; then
@@ -21,7 +15,7 @@ if [ -z "$workflow_created" ]; then
2115
fi
2216

2317
# Step 2: Check that the instance URL exists
24-
instance_url=$(grep '"instance_url":' $response | sed -n 's/.*"instance_url": "\([^"]*\)".*/\1/p')
18+
instance_url=$(cat config/INSTANCE_URL)
2519
if [ -z "$instance_url" ]; then
2620
echo "No instance URL found. Please run the trigger workflow script first."
2721
exit 1

0 commit comments

Comments
 (0)