Skip to content

Commit d24d26c

Browse files
committedDec 21, 2024
debug
1 parent b020766 commit d24d26c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎.forgejo/workflows/tofu-issue-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
ISSUE_BODY="${{ github.event.issue.body }}"
1919
echo "ISSUE_BODY=$ISSUE_BODY"
2020
21-
VM_NAME=$(echo "$ISSUE_BODY" | awk '/VM Name/{getline; print $0}' | xargs)
21+
VM_NAME=$(echo "$ISSUE_BODY" | grep -A 1 'VM Name' | tail -n 1 | xargs)
2222
echo "Extracted VM_NAME: '$VM_NAME'"
2323
2424
VM_ID=$(echo "$ISSUE_BODY" | grep 'VM ID:' | cut -d':' -f2 | xargs)

0 commit comments

Comments
 (0)
Please sign in to comment.