mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 00:43:54 +08:00
* enable cache
* test cache
* commai cache
* remove id
* only save on master
---------
Co-authored-by: Justin Newberry <justin@comma.ai>
old-commit-hash: f0f7e86dcc
13 lines
421 B
YAML
13 lines
421 B
YAML
name: 'set up pre-commit environment'
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- uses: ./.github/workflows/auto-cache
|
|
with:
|
|
path: .ci_cache/pre-commit
|
|
key: pre-commit-${{ hashFiles('**/.pre-commit-config.yaml') }}
|
|
restore-keys: |
|
|
pre-commit-
|
|
save: ${{ github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'commaai/openpilot' }}
|