Skip to content

Commit 962a1b5

Browse files
committed
Fix readme path
1 parent 4b67dbe commit 962a1b5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dist/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16783,10 +16783,10 @@ async function main() {
1678316783
.filter((block) => block.value.id !== databaseId)
1678416784
.map((block) => block.value);
1678516785

16786-
const README_PATH = __webpack_require__.ab + "README.md";
16786+
const README_PATH = './README.md';
1678716787
core.info(`Reading from ${README_PATH}`);
1678816788

16789-
const readmeLines = fs.readFileSync(__webpack_require__.ab + "README.md", 'utf-8').split('\n');
16789+
const readmeLines = fs.readFileSync(README_PATH, 'utf-8').split('\n');
1679016790
console.log(readmeLines);
1679116791
// Find the index corresponding to <!--START_SECTION:notion_learn--> comment
1679216792
let startIdx = readmeLines.findIndex(
@@ -16817,7 +16817,7 @@ async function main() {
1681716817

1681816818
core.info(`Writing to ${README_PATH}`);
1681916819

16820-
fs.writeFileSync(__webpack_require__.ab + "README.md", finalLines.join('\n'));
16820+
fs.writeFileSync(README_PATH, finalLines.join('\n'));
1682116821

1682216822
try {
1682316823
await commitFile();

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ async function main() {
9999
.filter((block) => block.value.id !== databaseId)
100100
.map((block) => block.value);
101101

102-
const README_PATH = path.resolve(__dirname, '../README.md');
102+
const README_PATH = './README.md';
103103
core.info(`Reading from ${README_PATH}`);
104104

105105
const readmeLines = fs.readFileSync(README_PATH, 'utf-8').split('\n');

0 commit comments

Comments
 (0)