chore(release): v1.0.15
This commit is contained in:
@@ -1,5 +1,12 @@
|
|||||||
|
## <small>1.0.15 (2021-01-16)</small>
|
||||||
|
|
||||||
|
* fix: template cannot be loaded from ejs file ([78c0f37](https://github.com/simonecorsi/mawesome/commit/78c0f37))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## <small>1.0.14 (2021-01-16)</small>
|
## <small>1.0.14 (2021-01-16)</small>
|
||||||
|
|
||||||
|
* chore(release): v1.0.14 ([91de25f](https://github.com/simonecorsi/mawesome/commit/91de25f))
|
||||||
* fix: somehow runner wont see template ([808c35c](https://github.com/simonecorsi/mawesome/commit/808c35c))
|
* fix: somehow runner wont see template ([808c35c](https://github.com/simonecorsi/mawesome/commit/808c35c))
|
||||||
|
|
||||||
|
|
||||||
|
30
index.js
30
index.js
@@ -21361,18 +21361,18 @@ const fs_1 = __importDefault(__nccwpck_require__(5747));
|
|||||||
const ejs_1 = __importDefault(__nccwpck_require__(8431));
|
const ejs_1 = __importDefault(__nccwpck_require__(8431));
|
||||||
const remark_1 = __importDefault(__nccwpck_require__(2081));
|
const remark_1 = __importDefault(__nccwpck_require__(2081));
|
||||||
const remark_toc_1 = __importDefault(__nccwpck_require__(5096));
|
const remark_toc_1 = __importDefault(__nccwpck_require__(5096));
|
||||||
|
const core = __importStar(__nccwpck_require__(2186));
|
||||||
const api_1 = __importDefault(__nccwpck_require__(8229));
|
const api_1 = __importDefault(__nccwpck_require__(8229));
|
||||||
const link_1 = __importDefault(__nccwpck_require__(9338));
|
const link_1 = __importDefault(__nccwpck_require__(9338));
|
||||||
const git_1 = __importDefault(__nccwpck_require__(6350));
|
const git_1 = __importDefault(__nccwpck_require__(6350));
|
||||||
const core = __importStar(__nccwpck_require__(2186));
|
const template_1 = __importDefault(__nccwpck_require__(3932));
|
||||||
const fsp = fs_1.default.promises;
|
const fsp = fs_1.default.promises;
|
||||||
const OUTPUT_FILENAME = core.getInput('output-filename') || 'README.md';
|
const OUTPUT_FILENAME = core.getInput('output-filename') || 'README.md';
|
||||||
const REPO_USERNAME = (_a = process.env.GITHUB_REPOSITORY) === null || _a === void 0 ? void 0 : _a.split('/')[0];
|
const REPO_USERNAME = (_a = process.env.GITHUB_REPOSITORY) === null || _a === void 0 ? void 0 : _a.split('/')[0];
|
||||||
const API_STARRED_URL = `${process.env.GITHUB_API_URL}/users/${REPO_USERNAME}/starred`;
|
const API_STARRED_URL = `${process.env.GITHUB_API_URL}/users/${REPO_USERNAME}/starred`;
|
||||||
const renderer = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
const renderer = (data, templateString = template_1.default) => __awaiter(void 0, void 0, void 0, function* () {
|
||||||
try {
|
try {
|
||||||
const MD_TEMPLATE = yield fsp.readFile('./template.ejs', 'utf-8');
|
return ejs_1.default.render(templateString, data);
|
||||||
return ejs_1.default.render(MD_TEMPLATE, data);
|
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
core.error('#renderer');
|
core.error('#renderer');
|
||||||
@@ -21468,6 +21468,28 @@ process.on('uncaughtException', catchAll);
|
|||||||
run();
|
run();
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 3932:
|
||||||
|
/***/ ((__unused_webpack_module, exports) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
exports.default = `# <%= username %> Awesome List [](https://github.com/sindresorhus/awesome)
|
||||||
|
|
||||||
|
## Table of Contents
|
||||||
|
|
||||||
|
<% for(let [language, repositories] of stars) { %>
|
||||||
|
## <%= language %>
|
||||||
|
|
||||||
|
<% for(let repo of repositories) { %>- [<%= repo.full_name %>](<%= repo.html_url %>) - <%= repo.description %>
|
||||||
|
<% } %>
|
||||||
|
|
||||||
|
<% } %>
|
||||||
|
`;
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 3407:
|
/***/ 3407:
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "mawesome",
|
"name": "mawesome",
|
||||||
"version": "1.0.14",
|
"version": "1.0.15",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
Reference in New Issue
Block a user