Skip to content

Commit

Permalink
Sort the list of repositories by name
Browse files Browse the repository at this point in the history
  • Loading branch information
MGaetan89 committed Feb 22, 2024
1 parent 6878dc8 commit e3b3910
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tech_radar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Update the list of used languages
run: >
echo ${{ toJSON(steps.repository_list.outputs.repository_list_json) }}
| jq '. | reduce .[] as { $name, $primaryLanguage, $url } ( {}; .[ $primaryLanguage.name | tostring ] += [ { name: $name, url: $url } ] )'
| jq '. | reduce .[] as { $name, $primaryLanguage, $url } ( {}; .[ $primaryLanguage.name | tostring ] += { $name: $url } )'
| gomplate -d repositories=stdin:///in.json -f techRadar/used_languages.tmpl -o public/techRadar/used_languages.md
- name: Commit the list of changes
Expand Down
4 changes: 2 additions & 2 deletions techRadar/used_languages.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{ range $language, $repositories := (ds "repositories") -}}
## {{ if eq $language "null" }}Unknown{{ else }}{{ $language }}{{ end }}

{{ range $repository := $repositories -}}
- [{{ $repository.name }}]({{ $repository.url }})
{{ range $name, $url := $repositories -}}
- [{{ $name }}]({{ $url }})
{{ end }}
{{ end -}}

0 comments on commit e3b3910

Please sign in to comment.