Skip to content

Commit 66168d5

Browse files
committed
Fix repo ordering and token pool error in CI
Sort repos alphabetically by full_name so the language list matches the expected order. Pass GITHUB_TOKEN to the Jekyll build step so jekyll-github-metadata can authenticate — without it the token pool is empty and badge fields render the error string.
1 parent a5ed994 commit 66168d5

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ jobs:
5555
run: bundle exec ruby fetch_github_repos.rb
5656

5757
- name: Build Jekyll site
58+
env:
59+
JEKYLL_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5860
run: |
5961
bundle exec jekyll build
6062

fetch_github_repos.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
client.auto_paginate = true
4242

4343
$stderr.puts 'Fetching public repos for giellalt...'
44-
repos = client.org_repos('giellalt', type: 'public', per_page: 100)
44+
repos = client.org_repos('giellalt', type: 'public', sort: 'full_name', per_page: 100)
4545
$stderr.puts "Found #{repos.count} repos"
4646

4747
slim = repos.map { |r| { 'name' => r.name, 'html_url' => r.html_url, 'topics' => r.topics } }

0 commit comments

Comments
 (0)