Skip to content

Commit

Permalink
feat: do not fail on file not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
isbang committed Jan 6, 2021
1 parent 24f6547 commit 5b5a1f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down
3 changes: 2 additions & 1 deletion post.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.down({ config: composeFile, log: true })
Expand Down

0 comments on commit 5b5a1f9

Please sign in to comment.