mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 05:24:06 +08:00
Enable cache for pre-commit (#31071)
* enable cache
* test cache
* commai cache
* remove id
* only save on master
---------
Co-authored-by: Justin Newberry <justin@comma.ai>
old-commit-hash: f0f7e86dcc
This commit is contained in:
12
.github/workflows/setup-pre-commit/action.yaml
vendored
Normal file
12
.github/workflows/setup-pre-commit/action.yaml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
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' }}
|
||||
Reference in New Issue
Block a user