mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-03-31 06:24:18 -04:00
Fix: set execute_in to ['lxc', 'vm'] for addon type in push_json_to_pocketbase workflow
Agent-Logs-Url: https://github.com/community-scripts/ProxmoxVED/sessions/229f4038-6916-4f1b-b6be-c6727b1274c1 Co-authored-by: MickLesk <47820557+MickLesk@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
1f1a8d2400
commit
5c2c89774f
4
.github/workflows/push_json_to_pocketbase.yml
generated
vendored
4
.github/workflows/push_json_to_pocketbase.yml
generated
vendored
@@ -206,8 +206,8 @@ 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 (addon has no execute_in context)
|
||||
var executeInMap = { ct: 'lxc', lxc: 'lxc', turnkey: 'turnkey', pve: 'pve', vm: 'vm' };
|
||||
// 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;
|
||||
|
||||
Reference in New Issue
Block a user