File tree Expand file tree Collapse file tree 2 files changed +43
-1
lines changed Expand file tree Collapse file tree 2 files changed +43
-1
lines changed Original file line number Diff line number Diff line change 1616 runs-on : ubuntu-22.04
1717 steps :
1818 - uses : actions/checkout@v4
19- - uses : actions/setup-python@v5
19+ - uses : actions/setup-python@v6
2020 with :
2121 python-version : 3.10.4
2222 - name : Install system hooks
Original file line number Diff line number Diff line change 1+ # Auto-update CI tools regularly
2+
3+ name : CI auto-update
4+
5+ on :
6+ schedule :
7+ # Run weekly
8+ - cron : ' 23 5 * * 0'
9+ workflow_dispatch :
10+
11+ jobs :
12+ ci_auto_update :
13+ name : CI auto-update
14+ runs-on : ubuntu-latest
15+ steps :
16+ # Setup pre-commit
17+ - uses : actions/checkout@v4
18+ - uses : actions/setup-python@v6
19+ with :
20+ python-version : 3.10.4
21+ - name : Install pre-commit
22+ run : pip install pre-commit
23+
24+ # Run update
25+ - name : Run pre-commit autoupdate
26+ run : pre-commit autoupdate
27+
28+ # Create pull request
29+ - name : Create pull-request
30+ id : cpr
31+ uses : peter-evans/create-pull-request@v7
32+ with :
33+ branch : update-ci/pre-commit-autoupdate
34+ delete-branch : true
35+ title : Auto-update pre-commit hooks
36+ committer : github-actions[bot] <github-actions[bot]@users.noreply.github.com>
37+ author : github-actions[bot] <github-actions[bot]@users.noreply.github.com>
38+ commit-message : Auto-update pre-commit hooks
39+ labels : CI
40+ - name : Check outputs
41+ if : ${{ steps.cpr.pull-request-number }}
42+ run : echo "Opened pull request ${{ steps.cpr.outputs.pull-request-number }} - ${{ steps.cpr.outputs.pull-request-url }}"
You can’t perform that action at this time.
0 commit comments