Skip to content

Commit

Permalink
test✅: test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
isboyjc committed Aug 1, 2024
1 parent 9648d70 commit 02adc75
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Build the languages
run: pnpm gen:lang
# - name: Build the languages
# run: pnpm gen:lang

- name: Build the trending
run: pnpm build
Expand Down
12 changes: 7 additions & 5 deletions script/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@ function convertToSlug(str) {
await run('weekly', 'all')
await run('monthly', 'all')

let languages = readFileSync(path.resolve(__dirname, DATA_BASE_URL, 'languages.json'), 'utf8');
languages = JSON.parse(languages);
// let languages = readFileSync(path.resolve(__dirname, DATA_BASE_URL, 'languages.json'), 'utf8');
// languages = JSON.parse(languages);

languages.forEach(async langObj => {
await run('daily', convertToSlug(langObj.name))
})
// console.log("Number of languages: ", languages.length)

// languages.forEach(async langObj => {
// await run('daily', convertToSlug(langObj.name))
// })
})();

0 comments on commit 02adc75

Please sign in to comment.