dont import star

This commit is contained in:
softprops 2019-09-09 18:14:17 +09:00
parent 9e07fb233a
commit 2940cbc2ff
2 changed files with 4 additions and 11 deletions

View File

@ -8,15 +8,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
step((generator = generator.apply(thisArg, _arguments || [])).next()); 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 }); 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 github_1 = require("@actions/github");
const util_1 = require("./util"); const util_1 = require("./util");
const github_2 = require("./github"); const github_2 = require("./github");
@ -38,7 +31,7 @@ function run() {
console.log(`🎉 Release ready at ${rel.html_url}`); console.log(`🎉 Release ready at ${rel.html_url}`);
} }
catch (error) { catch (error) {
core.setFailed(error.message); core_1.setFailed(error.message);
} }
}); });
} }

View File

@ -1,5 +1,5 @@
import * as fs from 'fs'; import * as fs from 'fs';
import * as core from '@actions/core'; import { setFailed } from '@actions/core';
import { GitHub } from '@actions/github'; import { GitHub } from '@actions/github';
import { paths, parseConfig, isTag } from './util'; import { paths, parseConfig, isTag } from './util';
import { release, upload } from './github'; import { release, upload } from './github';
@ -20,7 +20,7 @@ async function run() {
} }
console.log(`🎉 Release ready at ${rel.html_url}`) console.log(`🎉 Release ready at ${rel.html_url}`)
} catch (error) { } catch (error) {
core.setFailed(error.message); setFailed(error.message);
} }
} }