Skip to content

Commit 3ed0c27

Browse files
committed
wip: Mention instance name in console output and email
1 parent 693c870 commit 3ed0c27

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/create-instance.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,12 @@ jobs:
5151
- name: Create instance
5252
id: instance_create
5353
run: |
54-
echo Creating instance associated with issue $NUMBER
5554
source ~/app-cred-morpho-cloud-portal_github-runner-openrc.sh > /dev/null 2>&1
5655
source ~/venv/bin/activate
5756
5857
instance_name="morpho-cloud-portal_instance-$NUMBER"
58+
echo Creating instance "$instance_name"
59+
5960
openstack server create "$instance_name" \
6061
--nic net-id="auto_allocated_network" \
6162
--security-group "default" \
@@ -111,9 +112,9 @@ jobs:
111112
from: MorphoCloudPortal
112113
to: ${{ steps.extract.outputs.email }}
113114
subject:
114-
"[MorphoCloudPortal] Instance ${{ github.event.issue.number }}
115+
"[MorphoCloudPortal] Instance ${{ steps.instance_create.outputs.instance_name }}
115116
created"
116-
body: Instance ${{ github.event.issue.number }} created
117+
body: Instance ${{ steps.instance_create.outputs.instance_name }} created
117118

118119
- name: Add "instance:created" label
119120
if: ${{ success() }}

0 commit comments

Comments
 (0)