Skip to content

Update

Update #4772

Workflow file for this run

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]>