-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get the list of primary languages in every repository of the organisa…
…tion
- Loading branch information
Showing
4 changed files
with
145 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Update Tech Radar | ||
|
||
on: | ||
push: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
update_tech_radar: | ||
runs-on: ubuntu-latest | ||
name: Update Tech Radar | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install gomplate | ||
run: npm install -g gomplate | ||
|
||
- name: Get the list of repositories | ||
id: repository_list | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: > | ||
echo repository_list_json=$( | ||
gh repo list ${{ github.repository_owner }} | ||
--limit 1000 | ||
--source | ||
--no-archived | ||
--visibility public | ||
--json name,primaryLanguage,url | ||
--jq '. | tostring' | ||
) >> $GITHUB_OUTPUT | ||
- 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] = $url )' | ||
| gomplate -d repositories=stdin:///in.json -f techRadar/used_languages.tmpl -o public/techRadar/used_languages.md | ||
- name: Commit the list of changes | ||
run: | | ||
if [ `git ls-files -m | wc -l` -gt 0 ]; then | ||
git config user.name "github-actions[bot]" | ||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git add public/techRadar/used_languages.md | ||
git commit -m "Update techRadar/used_languages.md" | ||
git push | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# Used languages | ||
|
||
## C# | ||
|
||
- [WakeUp](https://github.com/SRGSSR/WakeUp) | ||
|
||
## HTML | ||
|
||
- [SRGMediaPlayer-Tools](https://github.com/SRGSSR/SRGMediaPlayer-Tools) | ||
- [guilde-plateformes-propres](https://github.com/SRGSSR/guilde-plateformes-propres) | ||
|
||
## Java | ||
|
||
- [TestPrep](https://github.com/SRGSSR/TestPrep) | ||
- [playsrg-playfff](https://github.com/SRGSSR/playsrg-playfff) | ||
- [react-native-pillarbox](https://github.com/SRGSSR/react-native-pillarbox) | ||
|
||
## JavaScript | ||
|
||
- [hackdays2023-storytelling](https://github.com/SRGSSR/hackdays2023-storytelling) | ||
- [layered-image-generation-apple](https://github.com/SRGSSR/layered-image-generation-apple) | ||
- [pillarbox-web](https://github.com/SRGSSR/pillarbox-web) | ||
- [pillarbox-web-demo](https://github.com/SRGSSR/pillarbox-web-demo) | ||
- [rio-gh-actions](https://github.com/SRGSSR/rio-gh-actions) | ||
- [rio-lint](https://github.com/SRGSSR/rio-lint) | ||
- [srgletterbox-peach](https://github.com/SRGSSR/srgletterbox-peach) | ||
- [videojs-hlsjs](https://github.com/SRGSSR/videojs-hlsjs) | ||
- [videojs-levels](https://github.com/SRGSSR/videojs-levels) | ||
- [videojs-offset](https://github.com/SRGSSR/videojs-offset) | ||
- [videojs-ttml](https://github.com/SRGSSR/videojs-ttml) | ||
- [wdio-jasmine-boilerplate](https://github.com/SRGSSR/wdio-jasmine-boilerplate) | ||
|
||
## Kotlin | ||
|
||
- [pillarbox-android](https://github.com/SRGSSR/pillarbox-android) | ||
- [srgdataprovider-android](https://github.com/SRGSSR/srgdataprovider-android) | ||
|
||
## Makefile | ||
|
||
- [docker-md2cf](https://github.com/SRGSSR/docker-md2cf) | ||
|
||
## Objective-C | ||
|
||
- [react-native-local-network-permission](https://github.com/SRGSSR/react-native-local-network-permission) | ||
- [srganalytics-apple](https://github.com/SRGSSR/srganalytics-apple) | ||
- [srgappearance-apple](https://github.com/SRGSSR/srgappearance-apple) | ||
- [srgcontentprotection-apple](https://github.com/SRGSSR/srgcontentprotection-apple) | ||
- [srgdataprovider-apple](https://github.com/SRGSSR/srgdataprovider-apple) | ||
- [srgdiagnostics-apple](https://github.com/SRGSSR/srgdiagnostics-apple) | ||
- [srgidentity-apple](https://github.com/SRGSSR/srgidentity-apple) | ||
- [srgletterbox-apple](https://github.com/SRGSSR/srgletterbox-apple) | ||
- [srglogger-apple](https://github.com/SRGSSR/srglogger-apple) | ||
- [srgmediaplayer-apple](https://github.com/SRGSSR/srgmediaplayer-apple) | ||
- [srgnetwork-apple](https://github.com/SRGSSR/srgnetwork-apple) | ||
- [srguserdata-apple](https://github.com/SRGSSR/srguserdata-apple) | ||
|
||
## PowerShell | ||
|
||
- [PowershellScriptsSelection](https://github.com/SRGSSR/PowershellScriptsSelection) | ||
|
||
## Python | ||
|
||
- [recipes](https://github.com/SRGSSR/recipes) | ||
|
||
## Shell | ||
|
||
- [ComScore-xcframework-apple](https://github.com/SRGSSR/ComScore-xcframework-apple) | ||
- [TCSDK-xcframework-apple](https://github.com/SRGSSR/TCSDK-xcframework-apple) | ||
|
||
## Swift | ||
|
||
- [GoogleCastSDK-ios-no-bluetooth](https://github.com/SRGSSR/GoogleCastSDK-ios-no-bluetooth) | ||
- [GoogleCastSDK-no-bluetooth](https://github.com/SRGSSR/GoogleCastSDK-no-bluetooth) | ||
- [TCServerSide-xcframework-spm-test-apple](https://github.com/SRGSSR/TCServerSide-xcframework-spm-test-apple) | ||
- [ghost-start-tester](https://github.com/SRGSSR/ghost-start-tester) | ||
- [pillarbox-apple](https://github.com/SRGSSR/pillarbox-apple) | ||
- [playsrg-apple](https://github.com/SRGSSR/playsrg-apple) | ||
|
||
## Unknown | ||
|
||
- [.github](https://github.com/SRGSSR/.github) | ||
- [pdpcore-schema](https://github.com/SRGSSR/pdpcore-schema) | ||
- [pillarbox-documentation](https://github.com/SRGSSR/pillarbox-documentation) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Used languages | ||
|
||
{{ range $language, $repositories := (ds "repositories") -}} | ||
## {{ if eq $language "null" }}Unknown{{ else }}{{ $language }}{{ end }} | ||
|
||
{{ range $name, $url := $repositories -}} | ||
- [{{ $name }}]({{ $url }}) | ||
{{ end }} | ||
{{ end -}} |