Skip to content

Commit 3df82f3

Browse files
committedDec 21, 2024
debug
1 parent 229e0ef commit 3df82f3

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed
 

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

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
echo "Extracting issue details..."
1818
ISSUE_BODY="${{ github.event.issue.body }}"
1919
VM_NAME=$(echo "$ISSUE_BODY" | grep -A 2 'VM Name' | tail -n 1 | xargs)
20-
VM_ID=$(echo "$ISSUE_BODY" | grep -A 2 'VM ID' | grep -v 'Clone VM ID' | tail -n 1 | xargs)
20+
VM_ID=$(echo "$ISSUE_BODY" | grep -A 2 'VM UID' | tail -n 1 | xargs)
2121
RAM=$(echo "$ISSUE_BODY" | grep -A 2 'RAM' | tail -n 1 | xargs)
2222
CPUS=$(echo "$ISSUE_BODY" | grep -A 2 'CPU Cores' | tail -n 1 | xargs)
2323
SCPU_TYPE=$(echo "$ISSUE_BODY" | grep -A 2 'CPU Type' | tail -n 1 | xargs)
@@ -27,8 +27,6 @@ jobs:
2727
DISK_SIZE=$(echo "$ISSUE_BODY" | grep -A 2 'Disk Size' | tail -n 1 | xargs)
2828
CLONE_VM_ID=$(echo "$ISSUE_BODY" | grep -A 2 'Clone VM ID' | tail -n 1 | xargs)
2929
30-
echo "NODE_NAME=$NODE_NAME"
31-
3230
# Determine user_data_file_id
3331
if [ "$NODE_NAME" == "prox" ]; then
3432
USER_DATA_FILE_ID="proxmox_virtual_environment_file.cloud_config.id"

‎.github/ISSUE_TEMPLATE/deploy-vm.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ body:
1818
- type: input
1919
id: vm_id
2020
attributes:
21-
label: VM ID
21+
label: VM UID
2222
placeholder: Enter the VM ID
2323
description: The unique numeric ID for the VM (e.g., 103).
2424
validations:
@@ -92,6 +92,6 @@ body:
9292
attributes:
9393
label: Clone VM ID
9494
placeholder: Enter the VM ID to clone from
95-
description: The VM ID to use as the clone source (e.g., 9996).
95+
description: VM to CLone from, Prox = 9996, Pve2 = 9997.
9696
validations:
9797
required: true

0 commit comments

Comments
 (0)
Please sign in to comment.