Fix warning in install.ts

This commit is contained in:
Shivam Mathur 2021-03-03 10:28:50 +05:30
parent e9a7adef28
commit 15b99e2a8d
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A
2 changed files with 11 additions and 3 deletions

6
dist/index.js vendored
View File

@ -2142,7 +2142,11 @@ async function run() {
} }
exports.run = run; exports.run = run;
// call the run function // call the run function
run(); (async () => {
await run();
})().catch(error => {
core.setFailed(error.message);
});
/***/ }), /***/ }),

View File

@ -1,4 +1,4 @@
import {exec} from '@actions/exec/lib/exec'; import {exec} from '@actions/exec';
import * as core from '@actions/core'; import * as core from '@actions/core';
import * as config from './config'; import * as config from './config';
import * as coverage from './coverage'; import * as coverage from './coverage';
@ -69,4 +69,8 @@ export async function run(): Promise<void> {
} }
// call the run function // call the run function
run(); (async () => {
await run();
})().catch(error => {
core.setFailed(error.message);
});