File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Autoupdate pre-commit
2+
3+ on :
4+ # For Branch-Protection check. Only the default branch is supported. See
5+ # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
6+ branch_protection_rule :
7+ # To guarantee Maintained check is occasionally updated. See
8+ # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
9+ schedule :
10+ - cron : ' 28 2 * * 6' # Saturday at 02:28 UTC
11+ workflow_dispatch :
12+
13+ jobs :
14+ autoupdate :
15+ name : Autoupdate
16+
17+ runs-on : ubuntu-latest
18+ timeout-minutes : 10
19+
20+ steps :
21+ - name : Checkout DPNP repo
22+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23+
24+ - name : Set up python
25+ uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
26+ with :
27+ python-version : ' 3.13'
28+
29+ - name : Install pre-commit
30+ run : pip install pre-commit
31+
32+ - name : Run pre-commit autoupdate
33+ run : pre-commit autoupdate
34+
35+ - name : Create a PR with autoupdate changes
36+ uses : peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
37+ with :
38+ commit-message : ' chore: update pre-commit hooks'
39+ add-paths : .pre-commit-config.yaml
40+ branch : ' bot/pre-commit-autoupdate'
41+ delete-branch : true
42+ title : Weekly pre-commit autoupdate
43+ body : |
44+ This PR updates the `.pre-commit-config.yaml` using `pre-commit autoupdate`.
45+ labels : autoupdate
You can’t perform that action at this time.
0 commit comments