mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-25 19:14:03 +03:00
Auto-update pre-commit hooks for template
This commit is contained in:
parent
5fd9b9ab8c
commit
c4aa645094
7
.github/workflows/pre-commit-autoupdate.yml
vendored
7
.github/workflows/pre-commit-autoupdate.yml
vendored
|
@ -5,7 +5,7 @@ name: Pre-commit auto-update
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 0 * * *"
|
- cron: "15 2 * * *"
|
||||||
workflow_dispatch: # to trigger manually
|
workflow_dispatch: # to trigger manually
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -23,7 +23,10 @@ jobs:
|
||||||
- name: Install pre-commit
|
- name: Install pre-commit
|
||||||
run: pip install pre-commit
|
run: pip install pre-commit
|
||||||
|
|
||||||
- name: Run pre-commit autoupdate
|
- name: Autoupdate template
|
||||||
|
run: pre-commit autoupdate
|
||||||
|
|
||||||
|
- name: Autoupdate generated projects
|
||||||
working-directory: "{{cookiecutter.project_slug}}"
|
working-directory: "{{cookiecutter.project_slug}}"
|
||||||
run: pre-commit autoupdate
|
run: pre-commit autoupdate
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user