70
70
default : " "
71
71
72
72
# Mode B (multi app)
73
- applicationDetails :
73
+ application_details :
74
74
description : >-
75
75
JSON array where each item maps:
76
76
{ "name" => application, "images" => image_base_names[], "path" => deploy_path }
@@ -363,7 +363,7 @@ jobs:
363
363
id : apps
364
364
uses : actions/github-script@v7
365
365
env :
366
- APP_DETAILS : ${{ inputs.applicationDetails }}
366
+ APP_DETAILS : ${{ inputs.application_details }}
367
367
APPLICATION : ${{ inputs.application }}
368
368
DEPLOY_PATH : ${{ inputs.deploy_path }}
369
369
IMG_ONE : ${{ inputs.image_base_name }}
@@ -375,15 +375,15 @@ jobs:
375
375
if (detailsRaw) {
376
376
let arr;
377
377
try { arr = JSON.parse(detailsRaw); }
378
- catch(e){ core.setFailed(`❌ applicationDetails is not valid JSON: ${e.message}`); return; }
379
- if (!Array.isArray(arr)) { core.setFailed('❌ applicationDetails must be a JSON array'); return; }
378
+ catch(e){ core.setFailed(`❌ application_details is not valid JSON: ${e.message}`); return; }
379
+ if (!Array.isArray(arr)) { core.setFailed('❌ application_details must be a JSON array'); return; }
380
380
for (let i=0;i<arr.length;i++){
381
381
const it = arr[i] || {};
382
382
const name = String(it.name || '').trim();
383
383
const path = String(it.path || '').trim();
384
384
const images = Array.isArray(it.images) ? it.images.map(String) : [];
385
- if (!name) { core.setFailed(`❌ applicationDetails [${i}].name is required`); return; }
386
- if (!path) { core.setFailed(`❌ applicationDetails [${i}].path is required`); return; }
385
+ if (!name) { core.setFailed(`❌ application_details [${i}].name is required`); return; }
386
+ if (!path) { core.setFailed(`❌ application_details [${i}].path is required`); return; }
387
387
apps.push({ name, path, images });
388
388
}
389
389
} else {
@@ -395,8 +395,8 @@ jobs:
395
395
if ((process.env.IMG_LIST || '').trim()) {
396
396
for (const s of process.env.IMG_LIST.split(',').map(x => x.trim()).filter(Boolean)) images.push(s);
397
397
}
398
- if (!name) { core.setFailed('❌ application is required when applicationDetails is not provided'); return; }
399
- if (!path) { core.setFailed('❌ deploy_path is required when applicationDetails is not provided'); return; }
398
+ if (!name) { core.setFailed('❌ application is required when application_details is not provided'); return; }
399
+ if (!path) { core.setFailed('❌ deploy_path is required when application_details is not provided'); return; }
400
400
apps.push({ name, path, images });
401
401
}
402
402
core.setOutput('apps', JSON.stringify(apps));
0 commit comments