From 2940cbc2ffd706fce42fd4a028936a0a91ba24b6 Mon Sep 17 00:00:00 2001
From: softprops <d.tangren@gmail.com>
Date: Mon, 9 Sep 2019 18:14:17 +0900
Subject: [PATCH] dont import star

---
 lib/main.js | 11 ++---------
 src/main.ts |  4 ++--
 2 files changed, 4 insertions(+), 11 deletions(-)

diff --git a/lib/main.js b/lib/main.js
index 9226280..98b40f8 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -8,15 +8,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
         step((generator = generator.apply(thisArg, _arguments || [])).next());
     });
 };
-var __importStar = (this && this.__importStar) || function (mod) {
-    if (mod && mod.__esModule) return mod;
-    var result = {};
-    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
-    result["default"] = mod;
-    return result;
-};
 Object.defineProperty(exports, "__esModule", { value: true });
-const core = __importStar(require("@actions/core"));
+const core_1 = require("@actions/core");
 const github_1 = require("@actions/github");
 const util_1 = require("./util");
 const github_2 = require("./github");
@@ -38,7 +31,7 @@ function run() {
             console.log(`🎉 Release ready at ${rel.html_url}`);
         }
         catch (error) {
-            core.setFailed(error.message);
+            core_1.setFailed(error.message);
         }
     });
 }
diff --git a/src/main.ts b/src/main.ts
index 72fb212..9dd59aa 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -1,5 +1,5 @@
 import * as fs from 'fs';
-import * as core from '@actions/core';
+import { setFailed } from '@actions/core';
 import { GitHub } from '@actions/github';
 import { paths, parseConfig, isTag } from './util';
 import { release, upload } from './github';
@@ -20,7 +20,7 @@ async function run() {
     }
     console.log(`🎉 Release ready at ${rel.html_url}`)
   } catch (error) {
-    core.setFailed(error.message);
+    setFailed(error.message);
   }
 }