diff --git a/src/index.ts b/src/index.ts index 9b3ca7c..24a628b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,8 +1,10 @@ import * as core from '@actions/core'; import * as main from './main'; -try { - main.run(); -} catch (e) { - core.setFailed(`Action failed with error ${e}`); -} +(async (): Promise => { + try { + await main.run(); + } catch (e) { + core.setFailed(`Action failed with error ${e.message}`); + } +})();