Spaces:
Sleeping
Sleeping
Captain Ezio
commited on
Commit
·
4e6ac9d
1
Parent(s):
522c3c4
Create pre-commit-autoupdate.yml
Browse files
.github/workflows/pre-commit-autoupdate.yml
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Pre-commit auto-update
|
2 |
+
on:
|
3 |
+
workflow_dispatch:
|
4 |
+
schedule:
|
5 |
+
- cron: "0 0 * * 1" # every weekday at midnight
|
6 |
+
jobs:
|
7 |
+
auto-update:
|
8 |
+
runs-on: ubuntu-latest
|
9 |
+
steps:
|
10 |
+
- uses: actions/checkout@v3
|
11 |
+
- name: Set up Python
|
12 |
+
uses: actions/setup-python@v3
|
13 |
+
- name: Install pre-commit
|
14 |
+
run: pip install pre-commit
|
15 |
+
- name: Run pre-commit autoupdate
|
16 |
+
run: pre-commit autoupdate
|
17 |
+
- name: Create Pull Request
|
18 |
+
uses: peter-evans/create-pull-request@v4
|
19 |
+
with:
|
20 |
+
token: ${{ secrets.GITHUB_TOKEN }}
|
21 |
+
branch: update/pre-commit-autoupdate
|
22 |
+
title: Auto-update pre-commit hooks
|
23 |
+
commit-message: Auto-update pre-commit hooks
|
24 |
+
body: |
|
25 |
+
Update versions of tools in pre-commit
|
26 |
+
configs to latest version
|
27 |
+
labels: dependencies
|