Skip to content

Commit

Permalink
Catch errors properly
Browse files Browse the repository at this point in the history
  • Loading branch information
jamieparkinson committed Aug 3, 2021
1 parent ff5a3c3 commit 67d338f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Add the following to your `pipeline.yml`:
```yml
steps:
- plugins:
- wellcomecollection/github-deployments#v0.1.1:
- wellcomecollection/github-deployments#v0.1.2:
ref: ${BUILDKITE_COMMIT}
environment: stage
```
Expand Down
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,7 @@ const main = async () => {
}
};

main();
main().catch((error) => {
console.error(error);
process.exitCode = 1;
});

0 comments on commit 67d338f

Please sign in to comment.