File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Autoupdate pre-commit
2+
3+ on :
4+ workflow_dispatch :
5+ branch_protection_rule :
6+ # To guarantee Maintained check is occasionally updated. See
7+ # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
8+ schedule :
9+ - cron : ' 28 2 * * 6' # Saturday at 02:28 UTC
10+
11+ permissions : read-all
12+
13+ jobs :
14+ autoupdate :
15+ name : Autoupdate
16+
17+ runs-on : ubuntu-latest
18+ timeout-minutes : 10
19+
20+ permissions :
21+ # Needed to create a PR with autoupdate changes
22+ contents : write
23+ pull-requests : write
24+
25+ steps :
26+ - name : Checkout repo
27+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
28+
29+ - name : Set up python
30+ uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
31+ with :
32+ python-version : ' 3.14'
33+
34+ - name : Install pre-commit
35+ run : pip install pre-commit
36+
37+ - name : Run pre-commit autoupdate
38+ run : pre-commit autoupdate
39+
40+ - name : Create a PR with autoupdate changes
41+ uses : peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
42+ with :
43+ commit-message : ' chore: update pre-commit hooks'
44+ add-paths : .pre-commit-config.yaml
45+ branch : ' bot/pre-commit-autoupdate'
46+ delete-branch : true
47+ title : Weekly pre-commit autoupdate
48+ body : |
49+ This PR updates the `.pre-commit-config.yaml` using `pre-commit autoupdate`.
50+ labels : autoupdate
You can’t perform that action at this time.
0 commit comments