Skip to content

Commit

Permalink
fix: ci ns detection optional according to commands
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo committed Jul 28, 2023
1 parent f533f62 commit 0919eb3
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 0919eb3

Please sign in to comment.