Skip to content

Commit a07b3a1

Browse files
committed
wip: testing
1 parent 5d70e27 commit a07b3a1

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

forge/actions/publish/dist/index.js

Lines changed: 8 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

forge/actions/publish/dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

forge/actions/publish/src/main.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,8 @@ module.exports = {
6363
* @returns {object} The blueprint object
6464
*/
6565
async function getBlueprint(project) {
66-
return JSON.parse(
67-
await exec.getExecOutput("forge", ["blueprint", "dump", project]),
68-
);
66+
result = await exec.exec("forge", ["blueprint", "dump", project]);
67+
return JSON.parse(result.stdout);
6968
}
7069

7170
/**
@@ -90,8 +89,12 @@ function getTag(strategy) {
9089
* @return {boolean} True if the image exists, false otherwise
9190
*/
9291
async function imageExists(name) {
93-
const ret = await exec.exec("docker", ["inspect", name]);
94-
return ret === 0;
92+
const result = await exec.exec("docker", ["inspect", name], {
93+
ignoreReturnCode: true,
94+
silent: true,
95+
});
96+
97+
return result.exitCode === 0;
9598
}
9699

97100
/***

0 commit comments

Comments
 (0)