Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2f5427b

Browse files
committed
update github action to use new script
1 parent 7f2a4d1 commit 2f5427b

4 files changed

Lines changed: 8 additions & 45 deletions

File tree

.github/workflows/on-push.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,9 @@ jobs:
1010
- uses: actions/setup-node@v2
1111
with:
1212
node-version: '14'
13-
- run: git log
13+
- run: npm install
14+
- run: npm run build
15+
- run: npm run todos
16+
- uses: EndBug/add-and-commit@v7
17+
with:
18+
message: 'bot: update language todos'

langs/id/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ These files exist for this language, but may need to be updated to reflect the n
88
<!--MM:START (UPDATED:lang=id) -->
99
| File | English File | Last Updated (EN) | Last Updated (ID) |
1010
| :----------------------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------- |
11-
| [langs/id/api.md](https://github.com/solidjs/solid-docs/tree/main/langs/id/api.md) | [langs/en/api.md](https://github.com/solidjs/solid-docs/tree/main/langs/en/api.md) | [11/19/2021](https://github.com/solidjs/solid-docs/commit/63e3fec697959588c5fb86d3963e3b7782d5e682) | [10/22/2021](https://github.com/solidjs/solid-docs/commit/b3f7f9ecc9f3bab59726e0cb7a95deb3dfee612e) |
1211
| [langs/id/guides/comparison.md](https://github.com/solidjs/solid-docs/tree/main/langs/id/guides/comparison.md) | [langs/en/guides/comparison.md](https://github.com/solidjs/solid-docs/tree/main/langs/en/guides/comparison.md) | [11/20/2021](https://github.com/solidjs/solid-docs/commit/4afc5f53d7c8b89c78787cec64f34de44e6eea42) | [11/10/2021](https://github.com/solidjs/solid-docs/commit/fd3aaa5cf6df1e9e663e97a62e0b516ce6c8ca2f) |
1312
| [langs/id/guides/faq.md](https://github.com/solidjs/solid-docs/tree/main/langs/id/guides/faq.md) | [langs/en/guides/faq.md](https://github.com/solidjs/solid-docs/tree/main/langs/en/guides/faq.md) | [11/20/2021](https://github.com/solidjs/solid-docs/commit/4afc5f53d7c8b89c78787cec64f34de44e6eea42) | [11/10/2021](https://github.com/solidjs/solid-docs/commit/fd3aaa5cf6df1e9e663e97a62e0b516ce6c8ca2f) |
1413
| [langs/id/guides/getting-started.md](https://github.com/solidjs/solid-docs/tree/main/langs/id/guides/getting-started.md) | [langs/en/guides/getting-started.md](https://github.com/solidjs/solid-docs/tree/main/langs/en/guides/getting-started.md) | [11/17/2021](https://github.com/solidjs/solid-docs/commit/ed8a33a5a95702fbff45e73027f315970b69abbc) | [10/22/2021](https://github.com/solidjs/solid-docs/commit/b3f7f9ecc9f3bab59726e0cb7a95deb3dfee612e) |

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"scripts": {
3232
"build": "jiti scripts/build.ts && rollup --config",
3333
"build:watch": "jiti scripts/build.ts --watch",
34+
"todos": "jiti scripts/todos.ts",
3435
"rollup:watch": "rollup --config --watch",
3536
"watch": "run-p build:watch rollup:watch",
3637
"publish": "npm publish --access public"

scripts/todos.ts

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -207,47 +207,5 @@ async function updateTodoData(sinceHash?: string) {
207207
}
208208
}
209209

210-
211-
(async () => {
212-
const fileMap = await getFileMap();
213-
initializeTodoData();
214-
// return;
215-
// console.log(await filePaths("tutorials/props_split", "en"));
216-
217-
218-
219-
// const data = await updateTodoData("1d65088afae4b6fd351499975c7b88078a6322b0");
220-
// console.log(data);
221-
222-
// getAllResourcePaths("en").map(async (path) => {
223-
//
224-
// const enFiles = await filePaths(path, "en");
225-
// const enLatest = enFiles.map(commitInfo);
226-
//
227-
// for (const lang of langs) {
228-
// const isSupported = getSupported(path, lang);
229-
// if (isSupported) {
230-
// const langFiles = await filePaths(path, lang);
231-
// const langLatest = langFiles.map(commitInfo);
232-
// for (let i = 0; i < enFiles.length; i++) {
233-
// if ( enLatest[i].date > langLatest[i].date) {
234-
// console.log(`${lang} ${path} ${langLatest[i].file} is out of date`)
235-
// }
236-
// }
237-
// }
238-
// }
239-
// // console.log(commitInfo);
240-
// })
241-
242-
243-
// for (const lang of langs) {
244-
// getAllResourcePaths(lang).map(path => {
245-
// const isSupported = getSupported(path, lang);
246-
// if (isSupported) {
247-
// gitlog()
248-
// }
249-
// })
250-
// }
251-
252-
})();
210+
initializeTodoData();
253211

0 commit comments

Comments
 (0)