From c07f33ede79e544ecd5d676da188951a8f97a949 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Mon, 3 Feb 2025 08:56:50 -0500 Subject: [PATCH] fix: Update to MorphoCloud/MorphoCloudWorkflow@fc1e1d7 List of MorphoCloudWorkflow changes: ``` $ git shortlog b64b997..fc1e1d7 --no-merges Jean-Christophe Fillion-Robin (1): feat(create-instance): Set instance properties like "exoSetup" only after reboot ``` See https://github.com/MorphoCloud/MorphoCloudWorkflow/compare/b64b997...fc1e1d7 --- .github/workflows/create-instance.yml | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/create-instance.yml b/.github/workflows/create-instance.yml index c99212fa..53b5bcfd 100644 --- a/.github/workflows/create-instance.yml +++ b/.github/workflows/create-instance.yml @@ -587,6 +587,34 @@ jobs: See details at https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} + - name: Set instance properties + id: set_instance_properties + run: | + source ~/venv/bin/activate + + # Explicitly set status to complete + exoSetup='{"status":"complete", "epoch": '$(date '+%s')'000}' + + openstack server set \ + --property "exoSetup=$exoSetup" \ + $INSTANCE_NAME + env: + OS_CLOUD: ${{ vars.MORPHOCLOUD_OS_CLOUD }} + INSTANCE_NAME: ${{ steps.define.outputs.instance_name }} + + - name: comment (failed to set instance properties) + if: + ${{ steps.set_instance_properties.outcome == 'failure' && failure() }} + uses: peter-evans/create-or-update-comment@v4.0.0 + with: + issue-number: ${{ github.event.issue.number }} + body: | + ### Instance Creation Results ❌ + + Failed to set instance properties. + + See details at https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} + - name: Update Request Status Label id: update-request-status-label uses: ./.github/actions/update-request-status-label