fix: add return type

This commit is contained in:
Shohei Ueda 2020-06-21 12:56:02 +09:00 committed by peaceiris
parent b4d9c85eba
commit 3a8a8801eb
No known key found for this signature in database
GPG key ID: 5868468A8EBA64EC

View file

@ -1,10 +1,10 @@
import * as core from '@actions/core';
import * as main from './main';
(async () => {
(async (): Promise<void> => {
try {
await main.run();
} catch (e) {
core.setFailed(`Action failed with error ${e}`);
core.setFailed(`Action failed with error ${e.message}`);
}
})();