mirror of
https://github.com/hoverkraft-tech/compose-action.git
synced 2026-01-11 15:13:06 +08:00
feat: do not fail on file not exists
This commit is contained in:
parent
24f65477e7
commit
5b5a1f9a95
3
main.js
3
main.js
@ -6,7 +6,8 @@ try {
|
||||
const composeFile = core.getInput('compose-file');
|
||||
|
||||
if (!fs.existsSync(composeFile)) {
|
||||
core.setFailed(`${composeFile} not exists`);
|
||||
console.log(`${composeFile} not exists`);
|
||||
return
|
||||
}
|
||||
|
||||
compose.upAll({ config: composeFile, log: true })
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user