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 150bb68 commit a383354
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/actions/node/builder/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26350,7 +26350,7 @@ const buildStep = async () => {
const actualTag = `${tag}.${timestamp}`;
for (const image of images) {
core.info(`Building image: ${image}:${actualTag}`);
const exitCode = await exec.exec('bash', ['./scripts/cli', 'build', image, tag], {
const exitCode = await exec.exec('bash', ['cli', 'build', image, tag], {
listeners: {
stdout: (data) => {
core.info(`${image} builder: ${data.toString()}`);
Expand All @@ -26359,6 +26359,7 @@ const buildStep = async () => {
core.error(`${image} builder error: ${data.toString()}`);
},
},
cwd: './scripts',
});
if (exitCode !== 0) {
core.error(`Failed to build image: ${image}:${actualTag}`);
Expand Down
3 changes: 2 additions & 1 deletion .github/actions/node/src/steps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const buildStep = async (): Promise<void> => {

for (const image of images) {
core.info(`Building image: ${image}:${actualTag}`)
const exitCode = await exec.exec('bash', ['./scripts/cli', 'build', image, tag], {
const exitCode = await exec.exec('bash', ['cli', 'build', image, tag], {
listeners: {
stdout: (data) => {
core.info(`${image} builder: ${data.toString()}`)
Expand All @@ -38,6 +38,7 @@ export const buildStep = async (): Promise<void> => {
core.error(`${image} builder error: ${data.toString()}`)
},
},
cwd: './scripts',
})

if (exitCode !== 0) {
Expand Down

0 comments on commit a383354

Please sign in to comment.