Skip to content

Commit

Permalink
wip: Mention instance name in console output and email
Browse files Browse the repository at this point in the history
  • Loading branch information
jcfr committed May 2, 2024
1 parent 693c870 commit 3ed0c27
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/create-instance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,12 @@ jobs:
- name: Create instance
id: instance_create
run: |
echo Creating instance associated with issue $NUMBER
source ~/app-cred-morpho-cloud-portal_github-runner-openrc.sh > /dev/null 2>&1
source ~/venv/bin/activate
instance_name="morpho-cloud-portal_instance-$NUMBER"
echo Creating instance "$instance_name"
openstack server create "$instance_name" \
--nic net-id="auto_allocated_network" \
--security-group "default" \
Expand Down Expand Up @@ -111,9 +112,9 @@ jobs:
from: MorphoCloudPortal
to: ${{ steps.extract.outputs.email }}
subject:
"[MorphoCloudPortal] Instance ${{ github.event.issue.number }}
"[MorphoCloudPortal] Instance ${{ steps.instance_create.outputs.instance_name }}
created"
body: Instance ${{ github.event.issue.number }} created
body: Instance ${{ steps.instance_create.outputs.instance_name }} created

- name: Add "instance:created" label
if: ${{ success() }}
Expand Down

0 comments on commit 3ed0c27

Please sign in to comment.