Skip to content

Commit 324207b

Browse files
committed
Add several automations to the MOTD generation
1 parent 634cc6d commit 324207b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/generate-motd.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,15 @@ jobs:
2424
uses: actions/checkout@v4
2525
with:
2626
repository: "armbian/os"
27-
ref: motd
2827
fetch-depth: 0
2928
path: os
3029

3130
- name: "Generate file"
3231
run: |
3332
3433
cat os/motd.json | jq '.[] | .expiration,.message,.url' | xargs -n3 -d'\n' | sed -e 's/" "/|/' | sed "s/\"//g" > quotes.txt
34+
# Get random application from armbion-config TBD: json structure needs primary field, so we only display top level info
35+
# cat lib/armbian-config/config.jobs.json | jq -c '.menu[] | select(.id=="Software") .sub[] | select(.id=="Media") .sub[]' | shuf -n 1
3536
3637
- name: Commit changes if any
3738
run: |

0 commit comments

Comments
 (0)