Merge pull request #178 from henninghall/patch-1
exit build with error if `getPackageJson` fails
This commit is contained in:
commit
ee34ef3f8d
2
index.js
2
index.js
|
@ -11,9 +11,9 @@ if (process.env.PACKAGEJSON_DIR) {
|
|||
}
|
||||
|
||||
const workspace = process.env.GITHUB_WORKSPACE;
|
||||
const pkg = getPackageJson();
|
||||
|
||||
(async () => {
|
||||
const pkg = getPackageJson();
|
||||
const event = process.env.GITHUB_EVENT_PATH ? require(process.env.GITHUB_EVENT_PATH) : {};
|
||||
|
||||
if (!event.commits && !process.env['INPUT_VERSION-TYPE']) {
|
||||
|
|
Loading…
Reference in New Issue