mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-03-31 06:24:18 -04:00
Merge pull request #1644 from community-scripts/copilot/add-http-request-function
Fix: addon type causes execute_in validation failure in push_json_to_pocketbase workflow
This commit is contained in:
6
.github/workflows/push_json_to_pocketbase.yml
generated
vendored
6
.github/workflows/push_json_to_pocketbase.yml
generated
vendored
@@ -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 runs on both lxc and vm)
|
||||
var executeInMap = { ct: 'lxc', lxc: 'lxc', turnkey: 'turnkey', pve: 'pve', vm: 'vm', addon: ['lxc', '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;
|
||||
|
||||
Reference in New Issue
Block a user