-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (49 loc) · 1.65 KB
/
update.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
name: Update
on:
schedule:
- cron: '0 * * * *'
push:
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Get `aosc-findupdate`
run: |
git clone https://github.com/AOSC-Dev/aosc-findupdate
cd aosc-findupdate
git checkout tags/v0.5.0
- name: Get `aosc-os-abbs`
run: git clone https://github.com/AOSC-Dev/aosc-os-abbs
- name: Cargo Cache
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
aosc-findupdate/target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build `aosc-findupdate`
run: |
cd aosc-findupdate
cargo build --release
- name: Generate `pkgsupdate.json`
run: ./aosc-findupdate/target/release/aosc-findupdate -c --dry-run -d ./aosc-os-abbs -j "$PWD"/pkgsupdate.json
- name: Generate `anicca-data.json`
run: python ./scripts/convert-data.py -o anicca-data.json
- name: Render markdown
run: cat pkgsupdate.json | python ./scripts/render-markdown.py > README.md
- name: Commit
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_user_name: AOSC OS Maintainers
commit_user_email: [email protected]
commit_author: AOSC OS Maintainers <[email protected]>