From 68c0996baf9affc6bbcfb2a4e8f5e80c9e855110 Mon Sep 17 00:00:00 2001 From: ugtthis <142481257+ugtthis@users.noreply.github.com> Date: Thu, 19 Dec 2024 12:01:50 -0700 Subject: [PATCH] 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 Co-authored-by: Adeeb Shihadeh --- .github/workflows/update-cars-docs.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/update-cars-docs.yml diff --git a/.github/workflows/update-cars-docs.yml b/.github/workflows/update-cars-docs.yml new file mode 100644 index 0000000000..bf72e5280f --- /dev/null +++ b/.github/workflows/update-cars-docs.yml @@ -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' + \ No newline at end of file