mirror of
https://github.com/infiniteCable2/opendbc.git
synced 2026-02-18 21:13:51 +08:00
CI: Update CARS.md every night (#1590)
* Initial commit * move to top * for testing - will revert * try this to get test to get actions to show * revert order * rename worflow * for testing - will revert * revert name change * editable mode * build cython modules * be explicit * simplify pip install * add submodules * revert to working code * TEST edit * docs: Nightly update CARS.md * clearer auto commit message * revert test doc change * docs: Scheduled auto-update CARS.md * rm on pull request * simpler approach * testing again * install scons * revert to working code * testing last time * docs: Scheduled auto-update CARS.md * revert test changes * auto generate CARS to revert md changes from test * docs: Scheduled auto-update CARS.md * revert on pull request * change to 12am PST * rm blank line * add name * Update .github/workflows/update-cars-docs.yml --------- Co-authored-by: ugtthis <ugtthis@users.noreply.github.com> Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
This commit is contained in:
25
.github/workflows/update-cars-docs.yml
vendored
Normal file
25
.github/workflows/update-cars-docs.yml
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
name: Update CARS.md
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 8 * * *' # 12am PST (8am UTC)
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
update-cars:
|
||||
runs-on: ubuntu-24.04
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Generate Car Docs
|
||||
run: |
|
||||
pip install -e .
|
||||
scons -c && scons -j$(nproc)
|
||||
python -m pip install jinja2==3.1.4 natsort==8.4.0
|
||||
python opendbc/car/docs.py
|
||||
- uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842
|
||||
with:
|
||||
commit_message: 'docs: Scheduled auto-update CARS.md'
|
||||
file_pattern: 'docs/CARS.md'
|
||||
|
||||
Reference in New Issue
Block a user