Skip to content

Commit

Permalink
CI: Update CARS.md every night (#1590)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
Co-authored-by: Adeeb Shihadeh <[email protected]>
  • Loading branch information
3 people authored Dec 19, 2024
1 parent 3cb926c commit 68c0996
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/update-cars-docs.yml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit 68c0996

Please sign in to comment.