-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (44 loc) · 1.61 KB
/
tech_radar.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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,nameWithOwner,primaryLanguage,url \
--jq '. | tostring'
) >> $GITHUB_OUTPUT
- name: Update the list of used languages
run: ./.github/workflows/techRadar/update_used_languages.sh ${{ toJSON(steps.repository_list.outputs.repository_list_json) }}
- name: Update the list of used dependencies
env:
GH_TOKEN: ${{ github.token }}
run: ./.github/workflows/techRadar/update_used_dependencies.sh ${{ toJSON(steps.repository_list.outputs.repository_list_json) }}
- 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 add public/techRadar/used_dependencies.md
git commit -m "Update Tech Radar"
git push
fi