Skip to content

Commit

Permalink
testing custom action
Browse files Browse the repository at this point in the history
  • Loading branch information
Uroš Marolt committed Jan 9, 2024
1 parent 203ae99 commit 150bb68
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/actions/node/builder/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26213,9 +26213,9 @@ const getInputs = async () => {
throw new Error(`Unknown action step: ${step}!`);
}
}
core.info(`Detected action steps: ${actionSteps.join(', ')}`);
core.info(`Action inputs: ${JSON.stringify(results)}`);
core.info(`Builder definitions: ${JSON.stringify(await (0, utils_1.getBuilderDefinitions)())}`);
// core.info(`Detected action steps: ${actionSteps.join(', ')}`)
// core.info(`Action inputs: ${JSON.stringify(results)}`)
// core.info(`Builder definitions: ${JSON.stringify(await getBuilderDefinitions())}`)
if (results[types_1.ActionStep.BUILD] !== undefined) {
if (results[types_1.ActionStep.BUILD].images.length === 0 && results[types_1.ActionStep.DEPLOY] !== undefined) {
// calculate images from services
Expand All @@ -26231,6 +26231,7 @@ const getInputs = async () => {
images.push(definition.imageName);
}
}
results[types_1.ActionStep.BUILD].images = images;
}
}
inputs = results;
Expand Down
8 changes: 5 additions & 3 deletions .github/actions/node/src/inputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ export const getInputs = async (): Promise<IActionInputs> => {
}
}

core.info(`Detected action steps: ${actionSteps.join(', ')}`)
core.info(`Action inputs: ${JSON.stringify(results)}`)
core.info(`Builder definitions: ${JSON.stringify(await getBuilderDefinitions())}`)
// core.info(`Detected action steps: ${actionSteps.join(', ')}`)
// core.info(`Action inputs: ${JSON.stringify(results)}`)
// core.info(`Builder definitions: ${JSON.stringify(await getBuilderDefinitions())}`)

if (results[ActionStep.BUILD] !== undefined) {
if (results[ActionStep.BUILD].images.length === 0 && results[ActionStep.DEPLOY] !== undefined) {
Expand All @@ -102,6 +102,8 @@ export const getInputs = async (): Promise<IActionInputs> => {
images.push(definition.imageName)
}
}

results[ActionStep.BUILD].images = images
}
}

Expand Down

0 comments on commit 150bb68

Please sign in to comment.