Skip to content

Commit

Permalink
fix: ci ns detection optional according to commands (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo authored Jul 28, 2023
1 parent f533f62 commit 3f5b7c6
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions packages/common/config/load-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -589,9 +589,17 @@ const loadConfig = async (
// do nothing
}
}
throw new Error(
`no matching ci namespace found, looked for: ${value.join(", ")}`
)
const errMsg = `no matching ci namespace found, looked for: ${value.join(
", "
)}`
if (
config.actionCommandName === "build" ||
config.actionCommandName === "deploy"
) {
throw new Error(errMsg)
} else {
logger.warn(errMsg)
}
},
},
linksSelfLocation: {
Expand Down

0 comments on commit 3f5b7c6

Please sign in to comment.