Skip to content

Commit

Permalink
Change data structure
Browse files Browse the repository at this point in the history
  • Loading branch information
MGaetan89 committed Feb 22, 2024
1 parent d9c5295 commit 3fb1b54
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 @@ -45,7 +45,7 @@ jobs:
-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 } ]' \
--jq '.sbom.packages | reduce .[] as { $name, $versionInfo } ( {}; .[ $name ] = $versionInfo )' \
| gomplate -d dependencies=stdin:///in.json -f techRadar/used_dependencies.tmpl -o public/techRadar/used_dependencies.md
- name: Commit the list of changes
Expand Down
4 changes: 2 additions & 2 deletions techRadar/used_dependencies.tmpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Used dependencies

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

0 comments on commit 3fb1b54

Please sign in to comment.