Skip to content

Commit

Permalink
♻️ Mark action as failed if error occurs during sync
Browse files Browse the repository at this point in the history
Fixes #95
  • Loading branch information
BetaHuhn committed Nov 9, 2021
1 parent 53d0397 commit c113c62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18188,8 +18188,8 @@ const run = async () => {

core.info(' ')
} catch (err) {
core.error(err.message)
core.error(err)
core.setFailed(err.message)
core.debug(err)
}
})

Expand All @@ -18210,8 +18210,8 @@ const run = async () => {
run()
.then(() => {})
.catch((err) => {
core.error('ERROR', err)
core.setFailed(err.message)
core.debug(err)
})
})();

Expand Down
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ const run = async () => {

core.info(' ')
} catch (err) {
core.error(err.message)
core.error(err)
core.setFailed(err.message)
core.debug(err)
}
})

Expand All @@ -206,6 +206,6 @@ const run = async () => {
run()
.then(() => {})
.catch((err) => {
core.error('ERROR', err)
core.setFailed(err.message)
core.debug(err)
})

0 comments on commit c113c62

Please sign in to comment.