From d24d26cf6587a5709dce14c9ad44303f9e637af1 Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Fri, 20 Dec 2024 22:57:07 -0500 Subject: [PATCH] debug --- .forgejo/workflows/tofu-issue-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/tofu-issue-deploy.yml b/.forgejo/workflows/tofu-issue-deploy.yml index 0a248a1..93d0672 100644 --- a/.forgejo/workflows/tofu-issue-deploy.yml +++ b/.forgejo/workflows/tofu-issue-deploy.yml @@ -18,7 +18,7 @@ jobs: ISSUE_BODY="${{ github.event.issue.body }}" echo "ISSUE_BODY=$ISSUE_BODY" - VM_NAME=$(echo "$ISSUE_BODY" | awk '/VM Name/{getline; print $0}' | xargs) + VM_NAME=$(echo "$ISSUE_BODY" | grep -A 1 'VM Name' | tail -n 1 | xargs) echo "Extracted VM_NAME: '$VM_NAME'" VM_ID=$(echo "$ISSUE_BODY" | grep 'VM ID:' | cut -d':' -f2 | xargs)