diff --git a/CHANGELOG.md b/CHANGELOG.md
index 814cc91..e6e0b24 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,12 @@
+## 1.0.15 (2021-01-16)
+
+* fix: template cannot be loaded from ejs file ([78c0f37](https://github.com/simonecorsi/mawesome/commit/78c0f37))
+
+
+
## 1.0.14 (2021-01-16)
+* 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))
diff --git a/index.js b/index.js
index 4e23308..63dacb8 100644
--- a/index.js
+++ b/index.js
@@ -21361,18 +21361,18 @@ const fs_1 = __importDefault(__nccwpck_require__(5747));
const ejs_1 = __importDefault(__nccwpck_require__(8431));
const remark_1 = __importDefault(__nccwpck_require__(2081));
const remark_toc_1 = __importDefault(__nccwpck_require__(5096));
+const core = __importStar(__nccwpck_require__(2186));
const api_1 = __importDefault(__nccwpck_require__(8229));
const link_1 = __importDefault(__nccwpck_require__(9338));
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 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 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 {
- const MD_TEMPLATE = yield fsp.readFile('./template.ejs', 'utf-8');
- return ejs_1.default.render(MD_TEMPLATE, data);
+ return ejs_1.default.render(templateString, data);
}
catch (error) {
core.error('#renderer');
@@ -21468,6 +21468,28 @@ process.on('uncaughtException', catchAll);
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:
diff --git a/package.json b/package.json
index 5cd693d..bb23966 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "mawesome",
- "version": "1.0.14",
+ "version": "1.0.15",
"description": "",
"main": "index.js",
"scripts": {