Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Update CARS.md every night #34290

Closed
wants to merge 30 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .github/workflows/repo-maintenance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ jobs:
git config --global --add safe.directory '*'
git -c submodule."tinygrad".update=none submodule update --remote
git add .
- name: update car docs
run: |
scons -j$(nproc) --minimal opendbc_repo
PYTHONPATH=. python selfdrive/car/docs.py
git add docs/CARS.md
- name: Create Pull Request
uses: peter-evans/create-pull-request@9153d834b60caba6d51c9b9510b087acf9f33f83
with:
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/update-cars-docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Update CARS.md

on:
schedule:
- cron: "0 8 * * *" # Run at 12am PST (8am UTC)
workflow_dispatch:

jobs:
update-cars:
runs-on: ubuntu-24.04
container:
image: ghcr.io/commaai/openpilot-base:latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Generate Car Docs
run: |
git config --global --add safe.directory '*'
scons -j$(nproc) --minimal opendbc_repo
PYTHONPATH=. python selfdrive/car/docs.py
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'docs: Scheduled auto-update CARS.md'
file_pattern: 'docs/CARS.md'
Loading