-
-
Notifications
You must be signed in to change notification settings - Fork 29
116 lines (99 loc) · 3.45 KB
/
index.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
name: "Generating index"
on:
schedule:
- cron: '0 5 * * *'
workflow_dispatch:
env:
GH_TOKEN: ${{ secrets.CR_PAT }}
jobs:
jobsend:
name: "Create index"
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'Armbian' }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
repository: armbian/community
path: community
clean: false
- name: Get releases
uses: armbian/actions/make-json@main
with:
owner: "armbian-alpha"
repository: "os"
filename: "alpha"
- name: Get releases
uses: armbian/actions/make-json@main
with:
owner: "armbian-beta"
repository: "os"
filename: "beta"
- name: Get releases
uses: armbian/actions/make-json@main
with:
owner: "armbian-gama"
repository: "os"
filename: "gama"
- name: Get releases
uses: armbian/actions/make-json@main
with:
owner: "armbian-delta"
repository: "os"
filename: "delta"
- name: Get releases
uses: armbian/actions/make-json@main
with:
owner: "armbiankappa"
repository: "os"
filename: "kappa"
- name: Get releases
uses: armbian/actions/make-json@main
with:
owner: "armbianro"
repository: "os"
filename: "ro"
- name: Make build list
run: |
VERSION=$(date +%Y%U)
echo "VERSION=$VERSION" >> $GITHUB_ENV
#cat json/generic.md
#cat json/optimised.md
ls -l
cat community/.github/header.inc > README.md
echo -en " \n\n" >> README.md
cat community/.github/memo.inc >> README.md
echo -en " \n\n" >> README.md
echo -e "<br>\n\n" >> README.md
echo "| Image | GPG | SHA | Release | Branch | Variant | Size | Kernel |" >> README.md
echo "| --- | :--: | :--: | --: | --: | --: | --: | --: |" >> README.md
cat json/alpha.md >> README.md
cat json/beta.md >> README.md
cat json/gama.md >> README.md
cat json/delta.md >> README.md
cat json/kappa.md >> README.md
cat json/ro.md >> README.md
echo -en "\n\n " >> README.md
cat community/.github/footer.inc >> README.md
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_KEY2 }}
passphrase: ${{ secrets.GPG_PASSPHRASE2 }}
workdir: community
git_user_signingkey: true
git_commit_gpgsign: true
- name: Update scripts
run: |
cp README.md community/README.md
cd community
if git status --porcelain | grep .; then
git config --global user.email "[email protected]"
git config --global user.name "Armbianworker"
git config pull.rebase false
git pull
git add README.md
git commit --allow-empty -m "Update index"
git push
fi