Skip to content

Commit

Permalink
Prepare the "Used dependencies" page
Browse files Browse the repository at this point in the history
  • Loading branch information
MGaetan89 committed Feb 22, 2024
1 parent 786a160 commit f4809d0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/tech_radar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
--source
--no-archived
--visibility public
--json name,primaryLanguage,url
--json name,nameWithOwner,primaryLanguage,url
--jq '. | tostring'
) >> $GITHUB_OUTPUT
Expand All @@ -37,6 +37,17 @@ jobs:
| 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: Update the list of used dependencies
env:
GH_TOKEN: ${{ github.token }}
run: |
gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/SRGSSR/pillarbox-android/dependency-graph/sbom \
--jq '[ .sbom.packages[] | { name: .name, version: .versionInfo } ]' \
| gomplate -d dependencies=stdin:///in.json -f techRadar/used_dependencies.tmpl -o public/techRadar/used_dependencies.md
- name: Commit the list of changes
run: |
if [ `git ls-files -m | wc -l` -gt 0 ]; then
Expand Down
1 change: 1 addition & 0 deletions public/_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@
**Tech Radar**

* [Used languages](/techRadar/used_languages.md)
* [Used dependencies](/techRadar/used_dependencies.md)
Empty file.
5 changes: 5 additions & 0 deletions techRadar/used_dependencies.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Used dependencies

{{ range $dependency := (ds "dependencies") -}}
- {{ $dependency.name }} v{{ $dependency.version}}
{{ end -}}

0 comments on commit f4809d0

Please sign in to comment.