Fix execute_in addon validation failure in push_json_to_pocketbase workflow

Agent-Logs-Url: https://github.com/community-scripts/ProxmoxVED/sessions/8cd78421-f401-4c18-9ee5-a60963a92795

Co-authored-by: MickLesk <47820557+MickLesk@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-29 09:47:59 +00:00
committed by GitHub
parent 5fc26cccb7
commit 1f1a8d2400

View File

@@ -206,9 +206,9 @@ jobs:
if (!fs.existsSync(file)) continue;
const data = JSON.parse(fs.readFileSync(file, 'utf8'));
if (!data.slug) { console.log('Skipping', file, '(no slug)'); continue; }
// execute_in: map type to canonical value
var executeInMap = { ct: 'lxc', lxc: 'lxc', turnkey: 'turnkey', pve: 'pve', addon: 'addon', vm: 'vm' };
var executeIn = data.type ? (executeInMap[data.type.toLowerCase()] || data.type.toLowerCase()) : null;
// execute_in: map type to canonical value (addon has no execute_in context)
var executeInMap = { ct: 'lxc', lxc: 'lxc', turnkey: 'turnkey', pve: 'pve', vm: 'vm' };
var executeIn = data.type ? (executeInMap[data.type.toLowerCase()] || null) : null;
// github: extract owner/repo from full GitHub URL
var githubField = null;
var projectUrl = data.github || null;